got rid of 'accept' dir in the tests
This commit is contained in:
parent
d0772feb08
commit
a274f3bf5b
264 changed files with 5 additions and 7 deletions
23
tests/run/tstrange.nim
Executable file
23
tests/run/tstrange.nim
Executable file
|
|
@ -0,0 +1,23 @@
|
|||
discard """
|
||||
file: "tstrange.nim"
|
||||
output: "hallo4"
|
||||
"""
|
||||
# test for extremely strange bug
|
||||
|
||||
proc ack(x: int, y: int): int =
|
||||
if x != 0:
|
||||
if y != 5:
|
||||
return y
|
||||
return x
|
||||
return x+y
|
||||
|
||||
proc gen[T](a: T) =
|
||||
write(stdout, a)
|
||||
|
||||
|
||||
gen("hallo")
|
||||
write(stdout, ack(5, 4))
|
||||
#OUT hallo4
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue