mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-22 08:51:21 +00:00
updated tests to be executed
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user