summary refs log tree commit diff stats
path: root/tests/constr
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-09-30 21:35:30 +0200
committerAndreas Rumpf <rumpf_a@web.de>2017-09-30 21:35:30 +0200
commitddc131cf07972decc206e033b2dd85a42eb1c98d (patch)
tree91cdafb802ebef32fd1f4d8b8347409165dee463 /tests/constr
parentb2c358be96e496c37f4d02b0e886a06ed503af9e (diff)
downloadNim-ddc131cf07972decc206e033b2dd85a42eb1c98d.tar.gz
the parser finally parses 'echo {1,2}' as it should
Diffstat (limited to 'tests/constr')
-rw-r--r--tests/constr/tconstr1.nim4
-rw-r--r--tests/constr/tconstr2.nim2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/constr/tconstr1.nim b/tests/constr/tconstr1.nim
index 28431287c..b9cf5d00b 100644
--- a/tests/constr/tconstr1.nim
+++ b/tests/constr/tconstr1.nim
@@ -14,13 +14,13 @@ type
 
 proc testSem =
   var
-    things: array [0..1, TComplexRecord] = [
+    things: array[0..1, TComplexRecord] = [
       (s: "hi", x: 69, y: 45, z: 0.0, chars: {'a', 'b', 'c'}),
       (s: "hi", x: 69, y: 45, z: 1.0, chars: {'a', 'b', 'c'})]
   write(stdout, things[0].x)
 
 const
-  things: array [0..1, TComplexRecord] = [
+  things: array[0..1, TComplexRecord] = [
     (s: "hi", x: 69, y: 45, z: 0.0, chars: {'a', 'b', 'c'}),
     (s: "hi", x: 69, y: 45, z: 1.0)] #ERROR
   otherThings = [  # the same
diff --git a/tests/constr/tconstr2.nim b/tests/constr/tconstr2.nim
index cd00681b8..b16be6c50 100644
--- a/tests/constr/tconstr2.nim
+++ b/tests/constr/tconstr2.nim
@@ -12,7 +12,7 @@ type
     chars: set[char]]
 
 const
-  things: array [0..1, TComplexRecord] = [
+  things: array[0..1, TComplexRecord] = [
     (s: "hi", x: 69, y: 45, z: 0.0, chars: {'a', 'b', 'c'}),
     (s: "hi", x: 69, y: 45, z: 1.0, chars: {})]
   otherThings = [  # the same