From c484829272cd13a738e35412498e12f2c9a194ac Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 07:48:59 +0200 Subject: Adding upstream version 0.19.2. Signed-off-by: Daniel Baumann --- test/json-mapped/array-of-arrays-basic/check.txt | 11 +++++++++++ test/json-mapped/array-of-arrays-basic/input.json | 9 +++++++++ test/json-mapped/array-of-arrays-basic/map.json | 19 +++++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 test/json-mapped/array-of-arrays-basic/check.txt create mode 100644 test/json-mapped/array-of-arrays-basic/input.json create mode 100644 test/json-mapped/array-of-arrays-basic/map.json (limited to 'test/json-mapped/array-of-arrays-basic') 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": "$[]"} + ] + } + ] +} -- cgit v1.2.3