summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorflywind <xzsflywind@gmail.com>2021-02-21 04:17:25 -0600
committerGitHub <noreply@github.com>2021-02-21 11:17:25 +0100
commit146beb2797982e2b80ab83c227b7279cad4e0943 (patch)
tree0817133ac411fd4677c40e334e47fd450a2ee2fc /tests
parent70ec17eede74f4216aee3b0bfb11e789bcbf0e54 (diff)
downloadNim-146beb2797982e2b80ab83c227b7279cad4e0943.tar.gz
remove unnecessary when statement (#17135)
Diffstat (limited to 'tests')
-rw-r--r--tests/stdlib/tjson.nim11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/stdlib/tjson.nim b/tests/stdlib/tjson.nim
index 78f284abb..b71961554 100644
--- a/tests/stdlib/tjson.nim
+++ b/tests/stdlib/tjson.nim
@@ -1,3 +1,8 @@
+discard """
+  targets: "c cpp js"
+"""
+
+
 #[
 Note: Macro tests are in tests/stdlib/tjsonmacro.nim
 ]#
@@ -234,4 +239,8 @@ doAssert isRefSkipDistinct(MyDistinct)
 doAssert isRefSkipDistinct(MyOtherDistinct)
 
 let x = parseJson("9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999")
-doAssert x.kind == JString
+
+when defined(js): # xxx fixme
+  doAssert x.kind == JInt
+else:
+  doAssert x.kind == JString