From 146beb2797982e2b80ab83c227b7279cad4e0943 Mon Sep 17 00:00:00 2001 From: flywind Date: Sun, 21 Feb 2021 04:17:25 -0600 Subject: remove unnecessary when statement (#17135) --- tests/stdlib/tjson.nim | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'tests') 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 -- cgit 1.4.1-2-gfad0