Mercurial > lcfOS
comparison test/testc3.py @ 303:be7f60545368
Final fixups
author | Windel Bouwman |
---|---|
date | Fri, 06 Dec 2013 12:37:48 +0100 |
parents | 6753763d3bec |
children | b145f8e6050b |
comparison
equal
deleted
inserted
replaced
302:2ef2247f8dda | 303:be7f60545368 |
---|---|
102 t2(1, 1.2); | 102 t2(1, 1.2); |
103 } | 103 } |
104 """ | 104 """ |
105 self.expectErrors(snippet, [5, 6]) | 105 self.expectErrors(snippet, [5, 6]) |
106 | 106 |
107 def testReturn(self): | |
108 snippet = """ | |
109 module testreturn; | |
110 function void t() | |
111 { | |
112 return; | |
113 } | |
114 """ | |
115 self.expectOK(snippet) | |
116 | |
117 def testReturn2(self): | |
118 snippet = """ | |
119 module testreturn; | |
120 function int t() | |
121 { | |
122 return 2; | |
123 } | |
124 """ | |
125 self.expectOK(snippet) | |
126 | |
107 def testExpressions(self): | 127 def testExpressions(self): |
108 snippet = """ | 128 snippet = """ |
109 module test; | 129 module test; |
110 function void t(int a, double b) | 130 function void t(int a, double b) |
111 { | 131 { |