enable more tests
This commit is contained in:
parent
1394978347
commit
cb4e04d88e
1 changed files with 20 additions and 21 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
discard """
|
discard """
|
||||||
cmd: '''nim c --newruntime $file'''
|
cmd: '''nim c --newruntime $file'''
|
||||||
output: '''316 316'''
|
output: '''442 442'''
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import strutils, os
|
import strutils, os
|
||||||
|
|
@ -134,17 +134,16 @@ proc staticTests =
|
||||||
doAssert join([1, 2, 3]) == "123"
|
doAssert join([1, 2, 3]) == "123"
|
||||||
doAssert join(@[1, 2, 3], ", ") == "1, 2, 3"
|
doAssert join(@[1, 2, 3], ", ") == "1, 2, 3"
|
||||||
|
|
||||||
when false:
|
|
||||||
doAssert """~~!!foo
|
doAssert """~~!!foo
|
||||||
~~!!bar
|
~~!!bar
|
||||||
~~!!baz""".unindent(2, "~~!!") == "foo\nbar\nbaz"
|
~~!!baz""".unindent(2, "~~!!") == "foo\nbar\nbaz"
|
||||||
|
|
||||||
doAssert """~~!!foo
|
doAssert """~~!!foo
|
||||||
~~!!bar
|
~~!!bar
|
||||||
~~!!baz""".unindent(2, "~~!!aa") == "~~!!foo\n~~!!bar\n~~!!baz"
|
~~!!baz""".unindent(2, "~~!!aa") == "~~!!foo\n~~!!bar\n~~!!baz"
|
||||||
doAssert """~~foo
|
doAssert """~~foo
|
||||||
~~ bar
|
~~ bar
|
||||||
~~ baz""".unindent(4, "~") == "foo\n bar\n baz"
|
~~ baz""".unindent(4, "~") == "foo\n bar\n baz"
|
||||||
doAssert """foo
|
doAssert """foo
|
||||||
bar
|
bar
|
||||||
baz
|
baz
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue