forked from toml-rs/toml-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added support of mixed-type arrays * Add tests cases * Replaced &'static str type for type_ and created a new enum instead * Restored ArrayMixedType
- Loading branch information
1 parent
7512904
commit 60b8743
Showing
11 changed files
with
81 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
test-suite/tests/valid/array-mixed-types-arrays-and-ints.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"arrays-and-ints": { | ||
"type": "array", | ||
"value": [ | ||
{"type": "integer", "value": "1"}, | ||
{"type": "array", "value": [ | ||
{ "type": "string", "value":"Arrays are not integers."} | ||
]} | ||
] | ||
} | ||
} |
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
test-suite/tests/valid/array-mixed-types-ints-and-floats.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"ints-and-floats": { | ||
"type": "array", | ||
"value": [ | ||
{"type": "integer", "value": "1"}, | ||
{"type": "float", "value": "1.1"} | ||
] | ||
} | ||
} |
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
test-suite/tests/valid/array-mixed-types-strings-and-ints.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"strings-and-ints": { | ||
"type": "array", | ||
"value": [ | ||
{"type": "string", "value": "hi"}, | ||
{"type": "integer", "value": "42"} | ||
] | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters