made tests green

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

View file

@ -82,7 +82,7 @@ type
of pkChar, pkGreedyRepChar: ch: char of pkChar, pkGreedyRepChar: ch: char
of pkCharChoice, pkGreedyRepSet: charChoice: ref set[char] of pkCharChoice, pkGreedyRepSet: charChoice: ref set[char]
of pkNonTerminal: nt: PNonTerminal of pkNonTerminal: nt: PNonTerminal
of pkBackRef..pkBackRefIgnoreStyle: index: range[1..MaxSubpatterns] of pkBackRef..pkBackRefIgnoreStyle: index: range[0..MaxSubpatterns]
else: sons: seq[TNode] else: sons: seq[TNode]
PNonTerminal* = ref TNonTerminal PNonTerminal* = ref TNonTerminal

View file

@ -21,7 +21,7 @@ s[0] = substr(s[0], 0, 2)
echo s[0] echo s[0]
if true: if s[0] != "hi":
echo "do it" echo "do it"
echo "more branches" echo "more branches"
else: else:

View file

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

View file

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

View file

@ -77,7 +77,7 @@ type
of pkChar, pkGreedyRepChar: ch: char of pkChar, pkGreedyRepChar: ch: char
of pkCharChoice, pkGreedyRepSet: charChoice: ref set[char] of pkCharChoice, pkGreedyRepSet: charChoice: ref set[char]
of pkNonTerminal: nt: PNonTerminal of pkNonTerminal: nt: PNonTerminal
of pkBackRef..pkBackRefIgnoreStyle: index: range[1..MaxSubpatterns] of pkBackRef..pkBackRefIgnoreStyle: index: range[0..MaxSubpatterns]
else: sons: seq[TNode] else: sons: seq[TNode]
PNonTerminal* = ref TNonTerminal PNonTerminal* = ref TNonTerminal