summary refs log tree commit diff stats
path: root/tests/stdlib
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-03-01 21:41:21 +0100
committerAraq <rumpf_a@web.de>2015-03-01 21:41:21 +0100
commit24ae0c387f4f95f5e61279dc3c78c117ca939eca (patch)
tree5c0bd2f0fb845c541224b3c49550cf58f8a056fd /tests/stdlib
parent566ee874cde6defb128cdf9df124c45146187129 (diff)
downloadNim-24ae0c387f4f95f5e61279dc3c78c117ca939eca.tar.gz
some love for the testsuite; fixed regressions
Diffstat (limited to 'tests/stdlib')
-rw-r--r--tests/stdlib/tmarshal.nim12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/stdlib/tmarshal.nim b/tests/stdlib/tmarshal.nim
index 1b83aab53..a778d2f77 100644
--- a/tests/stdlib/tmarshal.nim
+++ b/tests/stdlib/tmarshal.nim
@@ -6,11 +6,11 @@ import marshal
 
 template testit(x: expr) = discard $$to[type(x)]($$x)
 
-var x: array[0..4, array[0..4, string]] = [

-  ["test", "1", "2", "3", "4"], ["test", "1", "2", "3", "4"], 

-  ["test", "1", "2", "3", "4"], ["test", "1", "2", "3", "4"], 

-  ["test", "1", "2", "3", "4"]]

-testit(x)

+var x: array[0..4, array[0..4, string]] = [
+  ["test", "1", "2", "3", "4"], ["test", "1", "2", "3", "4"],
+  ["test", "1", "2", "3", "4"], ["test", "1", "2", "3", "4"],
+  ["test", "1", "2", "3", "4"]]
+testit(x)
 var test2: tuple[name: string, s: int] = ("tuple test", 56)
 testit(test2)
 
@@ -24,7 +24,7 @@ type
     of blah:
       help: string
     else:
-      nil
+      discard
       
   PNode = ref TNode
   TNode = object