*** empty log message ***
authorClaus Gittinger <cg@exept.de>
Thu, 20 Jul 2000 18:55:19 +0200
changeset 67 8472595ca0dd
parent 66 b2916ceb6d3d
child 68 f1168eea1026
*** empty log message ***
RegressionTests__CompilerTest.st
--- a/RegressionTests__CompilerTest.st	Thu Jul 20 18:39:33 2000 +0200
+++ b/RegressionTests__CompilerTest.st	Thu Jul 20 18:55:19 2000 +0200
@@ -187,6 +187,16 @@
     "
 !
 
+testIf4:val
+    ^ val isNil
+
+    "
+     self new testIf4:#CursorRight 
+     self new testIf4:1             
+     self new testIf4:nil             
+    "
+!
+
 testIf4:val1 with:val2
     ^ (val1 == nil and:[val2 == nil])
 
@@ -198,6 +208,16 @@
     "
 !
 
+testIf5:val
+    ^ val isNil ifTrue:[1]
+
+    "
+     self new testIf5:#CursorRight 
+     self new testIf5:1             
+     self new testIf5:nil             
+    "
+!
+
 testIf5:val1 with:val2
     ^ (val1 isNil and:[val2 isNil])
 
@@ -209,6 +229,26 @@
     "
 !
 
+testIf6:val
+    ^ val isNil ifTrue:1
+
+    "
+     self new testIf6:#CursorRight  
+     self new testIf6:1             
+     self new testIf6:nil             
+    "
+!
+
+testIf7:val
+    ^ val ? 1
+
+    "
+     self new testIf7:#CursorRight  
+     self new testIf7:1             
+     self new testIf7:nil             
+    "
+!
+
 testIfElse1:val
     |x|