made tests green

This commit is contained in:
Araq
2013-06-10 00:17:10 +02:00
parent be4fd48ab8
commit 8f97f3180a
5 changed files with 5 additions and 5 deletions

View File

@@ -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

View File

@@ -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:

View File

@@ -1,6 +1,6 @@
discard """
errormsg: "cannot prove 'y' is not nil"
line:22
line:20
"""
import strutils

View File

@@ -1,6 +1,6 @@
discard """
errormsg: "'y' might not have been initialized"
line:28
line:34
"""
import strutils

View File

@@ -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