diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/reject/tdisallowif.nim | 2 | ||||
-rw-r--r-- | tests/reject/tnotnil2.nim | 2 | ||||
-rw-r--r-- | tests/reject/tuninit1.nim | 2 | ||||
-rw-r--r-- | tests/run/tpegs.nim | 2 |
4 files changed, 4 insertions, 4 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 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 |