summaryrefslogtreecommitdiffstats
path: root/test/json-mapped/array-of-arrays-basic
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 05:48:59 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 05:48:59 +0000
commitc484829272cd13a738e35412498e12f2c9a194ac (patch)
treea1f5ec09629ee895bd3963fa8820b45f2f4c574b /test/json-mapped/array-of-arrays-basic
parentInitial commit. (diff)
downloadliborcus-c484829272cd13a738e35412498e12f2c9a194ac.tar.xz
liborcus-c484829272cd13a738e35412498e12f2c9a194ac.zip
Adding upstream version 0.19.2.upstream/0.19.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/json-mapped/array-of-arrays-basic')
-rw-r--r--test/json-mapped/array-of-arrays-basic/check.txt11
-rw-r--r--test/json-mapped/array-of-arrays-basic/input.json9
-rw-r--r--test/json-mapped/array-of-arrays-basic/map.json19
3 files changed, 39 insertions, 0 deletions
diff --git a/test/json-mapped/array-of-arrays-basic/check.txt b/test/json-mapped/array-of-arrays-basic/check.txt
new file mode 100644
index 0000000..28da464
--- /dev/null
+++ b/test/json-mapped/array-of-arrays-basic/check.txt
@@ -0,0 +1,11 @@
+data/0/2:string:"Simple list of arrays"
+data/1/2:string:"This file contains a list of arrays as data and some title strings at the top."
+data/3/1:numeric:1
+data/3/2:numeric:2
+data/3/3:numeric:3
+data/4/1:numeric:4
+data/4/2:numeric:5
+data/4/3:numeric:6
+data/5/1:numeric:7
+data/5/2:numeric:8
+data/5/3:numeric:9
diff --git a/test/json-mapped/array-of-arrays-basic/input.json b/test/json-mapped/array-of-arrays-basic/input.json
new file mode 100644
index 0000000..a93a012
--- /dev/null
+++ b/test/json-mapped/array-of-arrays-basic/input.json
@@ -0,0 +1,9 @@
+[
+ "Simple list of arrays",
+ "This file contains a list of arrays as data and some title strings at the top.",
+ [
+ [1, 2, 3],
+ [4, 5, 6],
+ [7, 8, 9]
+ ]
+]
diff --git a/test/json-mapped/array-of-arrays-basic/map.json b/test/json-mapped/array-of-arrays-basic/map.json
new file mode 100644
index 0000000..68af455
--- /dev/null
+++ b/test/json-mapped/array-of-arrays-basic/map.json
@@ -0,0 +1,19 @@
+{
+ "sheets": ["data"],
+ "cells": [
+ {"path": "$[0]", "sheet": "data", "row": 0, "column": 2},
+ {"path": "$[1]", "sheet": "data", "row": 1, "column": 2}
+ ],
+ "ranges": [
+ {"sheet": "data", "row": 3, "column": 1,
+ "fields": [
+ {"path": "$[][][0]"},
+ {"path": "$[][][1]"},
+ {"path": "$[][][2]"}
+ ],
+ "row-groups": [
+ {"path": "$[]"}
+ ]
+ }
+ ]
+}