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
11
tests/accept/run/tvartup.nim
Normal file
11
tests/accept/run/tvartup.nim
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# Test the new tuple unpacking
|
||||
|
||||
proc divmod(a, b: int): tuple[di, mo: int] =
|
||||
return (a div b, a mod b)
|
||||
|
||||
var (x, y) = divmod(15, 6)
|
||||
stdout.write(x)
|
||||
stdout.write(" ")
|
||||
stdout.write(y)
|
||||
|
||||
#OUT 2 3
|
||||
Loading…
Add table
Add a link
Reference in a new issue