comparison test/testc3.py @ 353:b8ad45b3a573

Started with strings
author Windel Bouwman
date Sun, 09 Mar 2014 18:49:10 +0100
parents 86b02c98a717
children 5477e499b039
comparison
equal deleted inserted replaced
352:899ae3aea803 353:b8ad45b3a573
352 a.x(9); 352 a.x(9);
353 } 353 }
354 """ 354 """
355 self.expectErrors(snippet, [6]) 355 self.expectErrors(snippet, [6])
356 356
357 def testString(self):
358 snippet = """
359 module teststring;
360 function void t()
361 {
362 var string a;
363 a = "Hello world";
364 print(a);
365 print("Moi");
366 }
367 function void print(string a)
368 {
369 }
370 """
371 self.expectOK(snippet)
372
357 def testPointerType1(self): 373 def testPointerType1(self):
358 snippet = """ 374 snippet = """
359 module testpointer1; 375 module testpointer1;
360 var int* pa; 376 var int* pa;
361 function void t() 377 function void t()