comparison python/testc3.py @ 191:6b2bec5653f1

Added assembler testset
author Windel Bouwman
date Sun, 26 May 2013 15:28:07 +0200
parents bf5ab358f43a
children b01429a5d695
comparison
equal deleted inserted replaced
190:65dda7e7e8bd 191:6b2bec5653f1
199 } 199 }
200 200
201 return b; 201 return b;
202 } 202 }
203 """ 203 """
204 ir = self.builder.build(snippet) 204 ircode = self.builder.build(snippet)
205 self.assertTrue(ir) 205 if not ircode:
206 self.diag.printErrors(snippet)
207 self.assertTrue(ircode)
206 def test2(self): 208 def test2(self):
207 # testsrc2 is valid code: 209 # testsrc2 is valid code:
208 self.diag.clear() 210 self.diag.clear()
209 ir = self.builder.build(testsrc2) 211 ir = self.builder.build(testsrc2)
210 self.assertTrue(ir) 212 self.assertTrue(ir)