summary refs log tree commit diff stats
path: root/tests/stdlib/t15835.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stdlib/t15835.nim')
-rw-r--r--tests/stdlib/t15835.nim22
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/stdlib/t15835.nim b/tests/stdlib/t15835.nim
deleted file mode 100644
index ba3405780..000000000
--- a/tests/stdlib/t15835.nim
+++ /dev/null
@@ -1,22 +0,0 @@
-discard """
-  targets: "c js"
-"""
-
-
-import std/json
-
-type
-  Foo = object
-    ii*: int
-    data*: JsonNode
-
-block:
-  const jt = """{"ii": 123, "data": ["some", "data"]}"""
-  let js = parseJson(jt)
-  discard js.to(Foo)
-
-block:
-  const jt = """{"ii": 123}"""
-  let js = parseJson(jt)
-  doAssertRaises(KeyError):
-    echo js.to(Foo)