From 34d1ab76270dbf23cb8688d866d59e41c442de0e Mon Sep 17 00:00:00 2001 From: Martin Tournoij Date: Tue, 29 Jun 2021 05:44:22 +0800 Subject: [PATCH] Add test for nested mixed arrays --- tests/valid/array-nested-double.json | 28 ++++++++++++++++++++++++++++ tests/valid/array-nested-double.toml | 6 ++++++ 2 files changed, 34 insertions(+) create mode 100644 tests/valid/array-nested-double.json create mode 100644 tests/valid/array-nested-double.toml diff --git a/tests/valid/array-nested-double.json b/tests/valid/array-nested-double.json new file mode 100644 index 0000000..c89a8c9 --- /dev/null +++ b/tests/valid/array-nested-double.json @@ -0,0 +1,28 @@ +{ + "nest": [ + [ + [ + { + "type": "string", + "value": "a" + } + ], + [ + { + "type": "integer", + "value": "1" + }, + { + "type": "integer", + "value": "2" + }, + [ + { + "type": "integer", + "value": "3" + } + ] + ] + ] + ] +} diff --git a/tests/valid/array-nested-double.toml b/tests/valid/array-nested-double.toml new file mode 100644 index 0000000..c1de747 --- /dev/null +++ b/tests/valid/array-nested-double.toml @@ -0,0 +1,6 @@ +nest = [ + [ + ["a"], + [1, 2, [3]] + ] +]