summary refs log tree commit diff stats
path: root/tests/reject
diff options
context:
space:
mode:
Diffstat (limited to 'tests/reject')
-rw-r--r--tests/reject/tdisallowif.nim2
-rw-r--r--tests/reject/tnotnil2.nim2
-rw-r--r--tests/reject/tuninit1.nim2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/reject/tdisallowif.nim b/tests/reject/tdisallowif.nim
index f7bb7098b..10f54288a 100644
--- a/tests/reject/tdisallowif.nim
+++ b/tests/reject/tdisallowif.nim
@@ -21,7 +21,7 @@ s[0] = substr(s[0], 0, 2)
 
 echo s[0]
 
-if true:
+if s[0] != "hi":
   echo "do it"
   echo "more branches"
 else:
diff --git a/tests/reject/tnotnil2.nim b/tests/reject/tnotnil2.nim
index 755314e30..bd6b8b675 100644
--- a/tests/reject/tnotnil2.nim
+++ b/tests/reject/tnotnil2.nim
@@ -1,6 +1,6 @@
 discard """
   errormsg: "cannot prove 'y' is not nil"
-  line:22
+  line:20
 """
 
 import strutils
diff --git a/tests/reject/tuninit1.nim b/tests/reject/tuninit1.nim
index e51f9ce7c..2a994b187 100644
--- a/tests/reject/tuninit1.nim
+++ b/tests/reject/tuninit1.nim
@@ -1,6 +1,6 @@
 discard """
   errormsg: "'y' might not have been initialized"
-  line:28
+  line:34
 """
 
 import strutils