updated tests to be executed
This commit is contained in:
parent
8ea72bdcea
commit
e012eb1001
57 changed files with 341 additions and 90 deletions
|
|
@ -1,7 +1,8 @@
|
|||
discard """
|
||||
action: compile
|
||||
"""
|
||||
|
||||
import db_sqlite
|
||||
|
||||
var db: DbConn
|
||||
exec(db, sql"create table blabla()")
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
discard """
|
||||
output: "4"
|
||||
"""
|
||||
|
||||
|
||||
type
|
||||
TFoo = object
|
||||
|
|
@ -25,4 +29,3 @@ echo f.second[1]
|
|||
|
||||
#echo `second[]`(f,1)
|
||||
# this is the only way I could use it, but not what I expected
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,9 @@
|
|||
discard """
|
||||
output: '''
|
||||
M=1000, D=500, C=100, L=50, X=10, V=5, I=1
|
||||
'''
|
||||
"""
|
||||
|
||||
const romanNumbers = [
|
||||
("M", 1000), ("D", 500), ("C", 100),
|
||||
("L", 50), ("X", 10), ("V", 5), ("I", 1) ]
|
||||
|
|
@ -12,5 +18,3 @@ for key, val in items(romanNumbers):
|
|||
proc PrintBiTuple(t: tuple[k: string, v: int]): int =
|
||||
stdout.write(t.k & "=" & $t.v & ", ")
|
||||
return 0
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue