summary refs log tree commit diff stats
path: root/tests/stdlib/tjsonmacro.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-08-13 12:29:03 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-08-13 12:29:03 +0200
commit7f49364fd073072c4db42428b1f67873a6e26d24 (patch)
tree4ae9badf2369a861cc2c9f79aaf33e038f7de0e5 /tests/stdlib/tjsonmacro.nim
parentdae5450947e93e2e5222ae2710874186bf27bf39 (diff)
downloadNim-7f49364fd073072c4db42428b1f67873a6e26d24.tar.gz
make more tests green
Diffstat (limited to 'tests/stdlib/tjsonmacro.nim')
-rw-r--r--tests/stdlib/tjsonmacro.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/stdlib/tjsonmacro.nim b/tests/stdlib/tjsonmacro.nim
index c0b4d5f78..bf0bb3ea7 100644
--- a/tests/stdlib/tjsonmacro.nim
+++ b/tests/stdlib/tjsonmacro.nim
@@ -40,7 +40,7 @@ when isMainModule:
     test: 18827361,
     test2: "hello world",
     test3: true,
-    testNil: nil
+    testNil: "nil"
   )
 
   let node = %x
@@ -53,7 +53,7 @@ when isMainModule:
   doAssert y.test == 18827361
   doAssert y.test2 == "hello world"
   doAssert y.test3
-  doAssert y.testNil.isNil
+  doAssert y.testNil == "nil"
 
   # Test for custom object variants (without an enum) and with an else branch.
   block: