summary refs log tree commit diff stats
path: root/tests/destructor
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-04-10 16:36:04 +0200
committerAraq <rumpf_a@web.de>2019-04-10 20:34:00 +0200
commitcb4e04d88e1bd24f148e410512eb9f9a7948f078 (patch)
tree6b75264c9c10012e5f6466abbfb40b66203a5399 /tests/destructor
parent1394978347dc2f71d7c71f36cb3b62591a7bf908 (diff)
downloadNim-cb4e04d88e1bd24f148e410512eb9f9a7948f078.tar.gz
enable more tests
Diffstat (limited to 'tests/destructor')
-rw-r--r--tests/destructor/tnewruntime_strutils.nim45
1 files changed, 22 insertions, 23 deletions
diff --git a/tests/destructor/tnewruntime_strutils.nim b/tests/destructor/tnewruntime_strutils.nim
index 2ac6b5845..80ed1757e 100644
--- a/tests/destructor/tnewruntime_strutils.nim
+++ b/tests/destructor/tnewruntime_strutils.nim
@@ -1,6 +1,6 @@
 discard """
   cmd: '''nim c --newruntime $file'''
-  output: '''316 316'''
+  output: '''442 442'''
 """
 
 import strutils, os
@@ -134,34 +134,33 @@ proc staticTests =
   doAssert join([1, 2, 3]) == "123"
   doAssert join(@[1, 2, 3], ", ") == "1, 2, 3"
 
-  when false:
-    doAssert """~~!!foo
-  ~~!!bar
-  ~~!!baz""".unindent(2, "~~!!") == "foo\nbar\nbaz"
-
-    doAssert """~~!!foo
-  ~~!!bar
-  ~~!!baz""".unindent(2, "~~!!aa") == "~~!!foo\n~~!!bar\n~~!!baz"
-    doAssert """~~foo
-  ~~  bar
-  ~~  baz""".unindent(4, "~") == "foo\n  bar\n  baz"
-    doAssert """foo
+  doAssert """~~!!foo
+~~!!bar
+~~!!baz""".unindent(2, "~~!!") == "foo\nbar\nbaz"
+
+  doAssert """~~!!foo
+~~!!bar
+~~!!baz""".unindent(2, "~~!!aa") == "~~!!foo\n~~!!bar\n~~!!baz"
+  doAssert """~~foo
+~~  bar
+~~  baz""".unindent(4, "~") == "foo\n  bar\n  baz"
+  doAssert """foo
   bar
     baz
   """.unindent(4) == "foo\nbar\nbaz\n"
-    doAssert """foo
+  doAssert """foo
     bar
     baz
   """.unindent(2) == "foo\n  bar\n  baz\n"
-    doAssert """foo
-    bar
-    baz
-  """.unindent(100) == "foo\nbar\nbaz\n"
-
-    doAssert """foo
-    foo
-    bar
-  """.unindent() == "foo\nfoo\nbar\n"
+  doAssert """foo
+      bar
+      baz
+    """.unindent(100) == "foo\nbar\nbaz\n"
+
+  doAssert """foo
+      foo
+      bar
+    """.unindent() == "foo\nfoo\nbar\n"
 
   let s = " this is an example  "
   let s2 = ":this;is;an:example;;"