summaryrefslogtreecommitdiffstats
path: root/test/json/basic3
diff options
context:
space:
mode:
Diffstat (limited to 'test/json/basic3')
-rw-r--r--test/json/basic3/check.txt29
-rw-r--r--test/json/basic3/input.json11
-rw-r--r--test/json/basic3/output.yaml10
3 files changed, 50 insertions, 0 deletions
diff --git a/test/json/basic3/check.txt b/test/json/basic3/check.txt
new file mode 100644
index 0000000..350d182
--- /dev/null
+++ b/test/json/basic3/check.txt
@@ -0,0 +1,29 @@
+ns0="http://schemas.kohei.us/orcus/2015/json"
+/ns0:array
+/ns0:array/ns0:item
+/ns0:array/ns0:item/ns0:number
+/ns0:array/ns0:item/ns0:number@value="0"
+/ns0:array/ns0:item
+/ns0:array/ns0:item/ns0:number
+/ns0:array/ns0:item/ns0:number@value="1"
+/ns0:array/ns0:item
+/ns0:array/ns0:item/ns0:number
+/ns0:array/ns0:item/ns0:number@value="2"
+/ns0:array/ns0:item
+/ns0:array/ns0:item/ns0:number
+/ns0:array/ns0:item/ns0:number@value="15"
+/ns0:array/ns0:item
+/ns0:array/ns0:item/ns0:number
+/ns0:array/ns0:item/ns0:number@value="12.34"
+/ns0:array/ns0:item
+/ns0:array/ns0:item/ns0:number
+/ns0:array/ns0:item/ns0:number@value="-0.12"
+/ns0:array/ns0:item
+/ns0:array/ns0:item/ns0:number
+/ns0:array/ns0:item/ns0:number@value="1.2e+22"
+/ns0:array/ns0:item
+/ns0:array/ns0:item/ns0:number
+/ns0:array/ns0:item/ns0:number@value="1.11e-07"
+/ns0:array/ns0:item
+/ns0:array/ns0:item/ns0:number
+/ns0:array/ns0:item/ns0:number@value="1100"
diff --git a/test/json/basic3/input.json b/test/json/basic3/input.json
new file mode 100644
index 0000000..d2a8967
--- /dev/null
+++ b/test/json/basic3/input.json
@@ -0,0 +1,11 @@
+[
+ 0,
+ 1,
+ 2,
+ 15,
+ 12.34,
+ -0.12,
+ 1.2e+22,
+ 1.11e-7,
+ 11E2
+]
diff --git a/test/json/basic3/output.yaml b/test/json/basic3/output.yaml
new file mode 100644
index 0000000..3624666
--- /dev/null
+++ b/test/json/basic3/output.yaml
@@ -0,0 +1,10 @@
+---
+- 0
+- 1
+- 2
+- 15
+- 12.34
+- -0.12
+- 1.2e+22
+- 1.11e-07
+- 1100