summary refs log tree commit diff stats
path: root/tests/stdlib/trepr2.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stdlib/trepr2.nim')
-rw-r--r--tests/stdlib/trepr2.nim64
1 files changed, 32 insertions, 32 deletions
diff --git a/tests/stdlib/trepr2.nim b/tests/stdlib/trepr2.nim
index b7c2bd152..a92024851 100644
--- a/tests/stdlib/trepr2.nim
+++ b/tests/stdlib/trepr2.nim
@@ -1,32 +1,32 @@
-# test the new "repr" built-in proc

-

-type

-  TEnum = enum

-    en1, en2, en3, en4, en5, en6

-

-  TPoint {.final.} = object

-    x, y, z: int

-    s: array [0..1, string]

-    e: TEnum

-

-var

-  p: TPoint

-  q: ref TPoint

-  s: seq[ref TPoint]

-

-p.x = 0

-p.y = 13

-p.z = 45

-p.s[0] = "abc"

-p.s[1] = "xyz"

-p.e = en6

-

-new(q)

-q[] = p

-

-s = @[q, q, q, q]

-

-writeLine(stdout, repr(p))

-writeLine(stdout, repr(q))

-writeLine(stdout, repr(s))

-writeLine(stdout, repr(en4))

+# test the new "repr" built-in proc
+
+type
+  TEnum = enum
+    en1, en2, en3, en4, en5, en6
+
+  TPoint {.final.} = object
+    x, y, z: int
+    s: array [0..1, string]
+    e: TEnum
+
+var
+  p: TPoint
+  q: ref TPoint
+  s: seq[ref TPoint]
+
+p.x = 0
+p.y = 13
+p.z = 45
+p.s[0] = "abc"
+p.s[1] = "xyz"
+p.e = en6
+
+new(q)
+q[] = p
+
+s = @[q, q, q, q]
+
+writeLine(stdout, repr(p))
+writeLine(stdout, repr(q))
+writeLine(stdout, repr(s))
+writeLine(stdout, repr(en4))