Mercurial > lcfOS
diff python/testc3.py @ 194:b01429a5d695
Fixed test
author | Windel Bouwman |
---|---|
date | Wed, 29 May 2013 22:36:37 +0200 |
parents | 6b2bec5653f1 |
children | de3a68f677a5 |
line wrap: on
line diff
--- a/python/testc3.py Sun May 26 23:58:59 2013 +0200 +++ b/python/testc3.py Wed May 29 22:36:37 2013 +0200 @@ -136,20 +136,23 @@ } """ self.diag.clear() - ir = self.builder.build(snippet) + ircode = self.builder.build(snippet) self.assertEqual(len(self.diag.diags), 3) self.assertEqual(self.diag.diags[0].loc.row, 8) self.assertEqual(self.diag.diags[1].loc.row, 9) self.assertEqual(self.diag.diags[2].loc.row, 10) - self.assertFalse(ir) + self.assertFalse(ircode) def testEmpty(self): snippet = """ package A """ - self.builder.build(snippet) + ircode = self.builder.build(snippet) + self.assertFalse(ircode) def testEmpty2(self): snippet = "" - self.builder.build(snippet) + self.diag.clear() + ircode = self.builder.build(snippet) + self.assertFalse(ircode) def testRedefine(self): snippet = """ package test; @@ -158,7 +161,8 @@ var int a; """ self.diag.clear() - self.builder.build(snippet) + ircode = self.builder.build(snippet) + self.assertFalse(ircode) self.assertEqual(len(self.diag.diags), 1) self.assertEqual(self.diag.diags[0].loc.row, 5) def testWhile(self):