Mercurial > lcfOS
diff test/testc3.py @ 313:04cf4d26a3bc
Added constant function
author | Windel Bouwman |
---|---|
date | Wed, 18 Dec 2013 18:02:26 +0100 |
parents | ff665880a6b0 |
children | 86b02c98a717 |
line wrap: on
line diff
--- a/test/testc3.py Mon Dec 16 17:58:15 2013 +0100 +++ b/test/testc3.py Wed Dec 18 18:02:26 2013 +0100 @@ -98,6 +98,24 @@ """ self.expectOK([p1, p2]) + def testConstant(self): + snip = """module C; + const int a = 2; + """ + i = self.expectOK(snip) + + @unittest.skip('Not checked yet') + def testConstantMutual(self): + snip = """module C; + const int a = b + 1; + const int b = a + 1; + function void f() + { + return b; + } + """ + i = self.expectOK(snip) + def testPackageNotExists(self): p1 = """module p1; import p23;