diff test/testc3.py @ 353:b8ad45b3a573

Started with strings
author Windel Bouwman
date Sun, 09 Mar 2014 18:49:10 +0100
parents 86b02c98a717
children 5477e499b039
line wrap: on
line diff
--- a/test/testc3.py	Sun Mar 09 11:55:55 2014 +0100
+++ b/test/testc3.py	Sun Mar 09 18:49:10 2014 +0100
@@ -354,6 +354,22 @@
         """
         self.expectErrors(snippet, [6])
 
+    def testString(self):
+        snippet = """
+         module teststring;
+         function void t()
+         {
+            var string a;
+            a = "Hello world";
+            print(a);
+            print("Moi");
+         }
+         function void print(string a)
+         {
+         }
+        """
+        self.expectOK(snippet)
+
     def testPointerType1(self):
         snippet = """
          module testpointer1;