summaryrefslogtreecommitdiffstats
path: root/test/json/basic4
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/json/basic4/check.txt14
-rw-r--r--test/json/basic4/input.json6
-rw-r--r--test/json/basic4/output.yaml4
3 files changed, 24 insertions, 0 deletions
diff --git a/test/json/basic4/check.txt b/test/json/basic4/check.txt
new file mode 100644
index 0000000..e50afa7
--- /dev/null
+++ b/test/json/basic4/check.txt
@@ -0,0 +1,14 @@
+ns0="http://schemas.kohei.us/orcus/2015/json"
+/ns0:object
+/ns0:object/ns0:item
+/ns0:object/ns0:item@name="int"
+/ns0:object/ns0:item/ns0:number
+/ns0:object/ns0:item/ns0:number@value="12"
+/ns0:object/ns0:item
+/ns0:object/ns0:item@name="float"
+/ns0:object/ns0:item/ns0:number
+/ns0:object/ns0:item/ns0:number@value="0.125"
+/ns0:object/ns0:item
+/ns0:object/ns0:item@name="string"
+/ns0:object/ns0:item/ns0:string
+/ns0:object/ns0:item/ns0:string@value="blah..."
diff --git a/test/json/basic4/input.json b/test/json/basic4/input.json
new file mode 100644
index 0000000..2161908
--- /dev/null
+++ b/test/json/basic4/input.json
@@ -0,0 +1,6 @@
+{
+ "int": 12,
+ "float": 0.125,
+ "string": "blah..."
+}
+
diff --git a/test/json/basic4/output.yaml b/test/json/basic4/output.yaml
new file mode 100644
index 0000000..a027a09
--- /dev/null
+++ b/test/json/basic4/output.yaml
@@ -0,0 +1,4 @@
+---
+int: 12
+float: 0.125
+string: blah...