summary refs log tree commit diff stats
path: root/tests/stdlib/tjsonmacro.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-08-16 12:30:00 +0200
committerAraq <rumpf_a@web.de>2018-08-16 12:30:00 +0200
commit2870ca5d717996d8451282de56c20418c89162a9 (patch)
treeb9b866ac48680a8363bf3d30e9664b59c66e2a53 /tests/stdlib/tjsonmacro.nim
parente05d0ea0bbb6ea48fb5017deec28f558e7e15755 (diff)
parentd82dd3c47d4aaaaea4bd1c1063d34006073bca38 (diff)
downloadNim-2870ca5d717996d8451282de56c20418c89162a9.tar.gz
Merge branch 'araq-misc' into devel
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: