comparison python/testc3.py @ 217:8b2e5f3cd579

Removed some stale python source files
author Windel Bouwman
date Fri, 05 Jul 2013 14:13:59 +0200
parents c1ccb1cb4cef
children 3f6c30a5d234
comparison
equal deleted inserted replaced
216:57c032c5e753 217:8b2e5f3cd579
107 def expectOK(self, snippet): 107 def expectOK(self, snippet):
108 ircode = self.builder.build(snippet) 108 ircode = self.builder.build(snippet)
109 if not ircode: 109 if not ircode:
110 self.diag.printErrors(snippet) 110 self.diag.printErrors(snippet)
111 self.assertTrue(ircode) 111 self.assertTrue(ircode)
112 return ircode
112 113
113 def testFunctArgs(self): 114 def testFunctArgs(self):
114 snippet = """ 115 snippet = """
115 package testargs; 116 package testargs;
116 function void t2(int a, double b) 117 function void t2(int a, double b)
269 a = b + a; 270 a = b + a;
270 } 271 }
271 } 272 }
272 273
273 """ 274 """
274 self.expectOK(snippet) 275 ircode = self.expectOK(snippet)
276 self.assertEqual(1, len(ircode.Functions))
275 277
276 if __name__ == '__main__': 278 if __name__ == '__main__':
277 unittest.main() 279 unittest.main()
278 280
279 281