summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-06-10 00:17:10 +0200
committerAraq <rumpf_a@web.de>2013-06-10 00:17:10 +0200
commit8f97f3180abf23d500027accffe6a1895d1a96ac (patch)
tree879978bc0d134556d9707dbcd8e543389580eba0
parentbe4fd48ab8456bb9f814dbae1e919e535b87b54f (diff)
downloadNim-8f97f3180abf23d500027accffe6a1895d1a96ac.tar.gz
made tests green
-rw-r--r--lib/pure/pegs.nim2
-rw-r--r--tests/reject/tdisallowif.nim2
-rw-r--r--tests/reject/tnotnil2.nim2
-rw-r--r--tests/reject/tuninit1.nim2
-rw-r--r--tests/run/tpegs.nim2
5 files changed, 5 insertions, 5 deletions
diff --git a/lib/pure/pegs.nim b/lib/pure/pegs.nim
index b6877696c..d8fed845a 100644
--- a/lib/pure/pegs.nim
+++ b/lib/pure/pegs.nim
@@ -82,7 +82,7 @@ type
     of pkChar, pkGreedyRepChar: ch: char
     of pkCharChoice, pkGreedyRepSet: charChoice: ref set[char]
     of pkNonTerminal: nt: PNonTerminal
-    of pkBackRef..pkBackRefIgnoreStyle: index: range[1..MaxSubpatterns]
+    of pkBackRef..pkBackRefIgnoreStyle: index: range[0..MaxSubpatterns]
     else: sons: seq[TNode]
   PNonTerminal* = ref TNonTerminal
   
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
diff --git a/tests/run/tpegs.nim b/tests/run/tpegs.nim
index e64cd8fef..efc6a8fa4 100644
--- a/tests/run/tpegs.nim
+++ b/tests/run/tpegs.nim
@@ -77,7 +77,7 @@ type
     of pkChar, pkGreedyRepChar: ch: char
     of pkCharChoice, pkGreedyRepSet: charChoice: ref set[char]
     of pkNonTerminal: nt: PNonTerminal
-    of pkBackRef..pkBackRefIgnoreStyle: index: range[1..MaxSubpatterns]
+    of pkBackRef..pkBackRefIgnoreStyle: index: range[0..MaxSubpatterns]
     else: sons: seq[TNode]
   PNonTerminal* = ref TNonTerminal