start of tests refactoring; sqlite3 new wrapper fixes
This commit is contained in:
parent
6bc16904ed
commit
d913fdb280
173 changed files with 206 additions and 238 deletions
17
tests/accept/run/tstrange.nim
Normal file
17
tests/accept/run/tstrange.nim
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# 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