made tests green
This commit is contained in:
parent
be4fd48ab8
commit
8f97f3180a
5 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
discard """
|
||||
errormsg: "cannot prove 'y' is not nil"
|
||||
line:22
|
||||
line:20
|
||||
"""
|
||||
|
||||
import strutils
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
discard """
|
||||
errormsg: "'y' might not have been initialized"
|
||||
line:28
|
||||
line:34
|
||||
"""
|
||||
|
||||
import strutils
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue