summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@googlemail.com>2014-04-18 23:31:45 +0100
committerDominik Picheta <dominikpicheta@googlemail.com>2014-04-18 23:31:45 +0100
commit20e3ab70b28b738364d5535c59e16d221237d5e5 (patch)
tree095fb8d3e500a6e8ed5b3e6d214eb863c0f651f0 /tests
parent00dc93b65b51e186b44485d9ae08daf9cef1d9ff (diff)
downloadNim-20e3ab70b28b738364d5535c59e16d221237d5e5.tar.gz
Improves tobjasgn test.
Diffstat (limited to 'tests')
-rw-r--r--tests/assign/tobjasgn.nim12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/assign/tobjasgn.nim b/tests/assign/tobjasgn.nim
index da12319cd..23a31252d 100644
--- a/tests/assign/tobjasgn.nim
+++ b/tests/assign/tobjasgn.nim
@@ -1,5 +1,5 @@
 discard """
-  output: '''0 0
+  output: '''8 5 0 0
 pre test a:test b:1 c:2 haha:3
 assignment test a:test b:1 c:2 haha:3
 '''
@@ -9,13 +9,13 @@ assignment test a:test b:1 c:2 haha:3
 
 type
   TSomeObj = object of TObject
-    a: int
+    a, b: int
   PSomeObj = ref object
-    a: int
+    a, b: int
  
-var a = TSomeObj()
-var b = PSomeObj()
-echo a.a, " ", b.a
+var a = TSomeObj(a: 8)
+var b = PSomeObj(a: 5)
+echo a.a, " ", b.a, " ", a.b, " ", b.b
 
 # bug #575