diff python/testc3.py @ 251:6ed3d3a82a63

Added another c3 example. First import attempt
author Windel Bouwman
date Mon, 29 Jul 2013 20:23:13 +0200
parents e41e4109addd
children c4370696ccc7
line wrap: on
line diff
--- a/python/testc3.py	Sun Jul 28 19:07:51 2013 +0200
+++ b/python/testc3.py	Mon Jul 29 20:23:13 2013 +0200
@@ -122,6 +122,17 @@
         self.assertSequenceEqual(expected_ins, actual_ins)
         return ircode
 
+    def testPackage(self):
+        p1 = """package p1;
+        type int A;
+        """
+        p2 = """package p2;
+        import p1;
+        var A b;
+        """
+        self.assertTrue(self.builder.build(p1))
+        self.expectOK(p2)
+
     def testFunctArgs(self):
       snippet = """
          package testargs;