new tester; all tests categorized
This commit is contained in:
parent
51ee524109
commit
20b5f31c03
481 changed files with 794 additions and 2506 deletions
16
tests/typerel/ttuple1.nim
Normal file
16
tests/typerel/ttuple1.nim
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
const romanNumbers = [
|
||||
("M", 1000), ("D", 500), ("C", 100),
|
||||
("L", 50), ("X", 10), ("V", 5), ("I", 1) ]
|
||||
|
||||
var c = 0
|
||||
for key, val in items(romanNumbers):
|
||||
inc(c)
|
||||
stdout.write(key & "=" & $val)
|
||||
if c < romanNumbers.len: stdout.write(", ") else: echo""
|
||||
#echo""
|
||||
|
||||
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