diff options
Diffstat (limited to 'test/json-mapped/array-of-arrays-header')
-rw-r--r-- | test/json-mapped/array-of-arrays-header/check.txt | 57 | ||||
-rw-r--r-- | test/json-mapped/array-of-arrays-header/input.json | 19 | ||||
-rw-r--r-- | test/json-mapped/array-of-arrays-header/map.json | 15 |
3 files changed, 91 insertions, 0 deletions
diff --git a/test/json-mapped/array-of-arrays-header/check.txt b/test/json-mapped/array-of-arrays-header/check.txt new file mode 100644 index 0000000..0a8b423 --- /dev/null +++ b/test/json-mapped/array-of-arrays-header/check.txt @@ -0,0 +1,57 @@ +city/0/0:string:"RID" +city/0/1:string:"Country" +city/0/2:string:"City" +city/1/0:string:"1" +city/1/1:string:"Tunisia" +city/1/2:string:"Menzel Bourguiba" +city/2/0:string:"2" +city/2/1:string:"Indonesia" +city/2/2:string:"Jiwuwu" +city/3/0:string:"3" +city/3/1:string:"China" +city/3/2:string:"Dingtou" +city/4/0:string:"4" +city/4/1:string:"China" +city/4/2:string:"Tucheng" +city/5/0:string:"5" +city/5/1:string:"United States" +city/5/2:string:"Charlotte" +city/6/0:string:"6" +city/6/1:string:"China" +city/6/2:string:"Xuwei" +city/7/0:string:"7" +city/7/1:string:"Uganda" +city/7/2:string:"Moroto" +city/8/0:string:"8" +city/8/1:string:"Poland" +city/8/2:string:"Krasne" +city/9/0:string:"10" +city/9/1:string:"Indonesia" +city/9/2:string:"Babakan" +city/10/0:string:"11" +city/10/1:string:"Philippines" +city/10/2:string:"Vigo" +city/11/0:string:"12" +city/11/1:string:"Tajikistan" +city/11/2:string:"Konsoy" +city/12/0:string:"13" +city/12/1:string:"Honduras" +city/12/2:string:"La Estancia" +city/13/0:string:"14" +city/13/1:string:"Japan" +city/13/2:string:"Yatsushiro" +city/14/0:string:"15" +city/14/1:string:"Mexico" +city/14/2:string:"Lindavista" +city/15/0:string:"17" +city/15/1:string:"United States" +city/15/2:string:"San Jose" +city/16/0:string:"18" +city/16/1:string:"Nigeria" +city/16/2:string:"Uyo" +city/17/0:string:"19" +city/17/1:string:"Brazil" +city/17/2:string:"Planaltina" +city/18/0:string:"20" +city/18/1:string:"United States" +city/18/2:string:"Indianapolis" diff --git a/test/json-mapped/array-of-arrays-header/input.json b/test/json-mapped/array-of-arrays-header/input.json new file mode 100644 index 0000000..4f0fbe9 --- /dev/null +++ b/test/json-mapped/array-of-arrays-header/input.json @@ -0,0 +1,19 @@ +[["1","Tunisia","Menzel Bourguiba"], +["2","Indonesia","Jiwuwu"], +["3","China","Dingtou"], +["4","China","Tucheng"], +["5","United States","Charlotte"], +["6","China","Xuwei"], +["7","Uganda","Moroto"], +["8","Poland","Krasne"], +["10","Indonesia","Babakan"], +["11","Philippines","Vigo"], +["12","Tajikistan","Konsoy"], +["13","Honduras","La Estancia"], +["14","Japan","Yatsushiro"], +["15","Mexico","Lindavista"], +["17","United States","San Jose"], +["18","Nigeria","Uyo"], +["19","Brazil","Planaltina"], +["20","United States","Indianapolis"] +] diff --git a/test/json-mapped/array-of-arrays-header/map.json b/test/json-mapped/array-of-arrays-header/map.json new file mode 100644 index 0000000..1c7bfea --- /dev/null +++ b/test/json-mapped/array-of-arrays-header/map.json @@ -0,0 +1,15 @@ +{ + "sheets": ["city"], + "ranges": [ + {"row": 0, "column": 0, "sheet": "city", "row-header": true, + "fields": [ + {"path": "$[][0]", "label": "RID"}, + {"path": "$[][1]", "label": "Country"}, + {"path": "$[][2]", "label": "City"}, + ], + "row-groups": [ + {"path": "$"}, + ] + } + ] +} |