new tester; all tests categorized
This commit is contained in:
parent
51ee524109
commit
20b5f31c03
481 changed files with 794 additions and 2506 deletions
27
tests/lexer/tind1.nim
Normal file
27
tests/lexer/tind1.nim
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
discard """
|
||||
line: 24
|
||||
errormsg: "expression expected, but found 'keyword else'"
|
||||
"""
|
||||
|
||||
import macros
|
||||
|
||||
# finally optional indentation in 'if' expressions :-):
|
||||
var x = if 4 != 5:
|
||||
"yes"
|
||||
else:
|
||||
"no"
|
||||
|
||||
macro mymacro(n: expr): stmt {.immediate.} = nil
|
||||
|
||||
mymacro:
|
||||
echo "test"
|
||||
else:
|
||||
echo "else part"
|
||||
|
||||
|
||||
if 4 == 3:
|
||||
echo "bug"
|
||||
else:
|
||||
echo "no bug"
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue