remove some noises in tests (#16448)
This commit is contained in:
parent
357729639f
commit
271f68259b
17 changed files with 140 additions and 181 deletions
|
|
@ -3,11 +3,11 @@ import unittest
|
|||
proc concat(a, b): string =
|
||||
result = $a & $b
|
||||
|
||||
test "if proc param types are not supplied, the params are assumed to be generic":
|
||||
block: # if proc param types are not supplied, the params are assumed to be generic
|
||||
check concat(1, "test") == "1test"
|
||||
check concat(1, 20) == "120"
|
||||
check concat("foo", "bar") == "foobar"
|
||||
|
||||
test "explicit param types can still be specified":
|
||||
block: # explicit param types can still be specified
|
||||
check concat[cstring, cstring]("x", "y") == "xy"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue