aboutsummaryrefslogtreecommitdiff
path: root/test-suite/tests/valid
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2018-07-28 15:15:01 -0700
committerGitHub <noreply@github.com>2018-07-28 15:15:01 -0700
commit55a11b89550fb280e3f889cc1b8c9073de6fb937 (patch)
tree98529f0dbc9c75e795e720dd37945b1e189bf450 /test-suite/tests/valid
parent010ae9ffde22a2ed045e8042cd05db42f4adeefa (diff)
parentd6f383d20c2dbefd9ece0834b05310dfae4e2a88 (diff)
downloadmilf-rs-55a11b89550fb280e3f889cc1b8c9073de6fb937.tar.gz
milf-rs-55a11b89550fb280e3f889cc1b8c9073de6fb937.zip
Merge pull request #252 from ehuss/dotted-keys
0.5: Support dotted keys.
Diffstat (limited to 'test-suite/tests/valid')
-rw-r--r--test-suite/tests/valid/dotted-keys.json34
-rw-r--r--test-suite/tests/valid/dotted-keys.toml7
2 files changed, 41 insertions, 0 deletions
diff --git a/test-suite/tests/valid/dotted-keys.json b/test-suite/tests/valid/dotted-keys.json
new file mode 100644
index 0000000..cf9dd04
--- /dev/null
+++ b/test-suite/tests/valid/dotted-keys.json
@@ -0,0 +1,34 @@
+{
+ "a": {
+ "b": {
+ "type": "integer",
+ "value": "123"
+ }
+ },
+ "table": {
+ "a": {
+ "b": {
+ "c": {
+ "type": "integer",
+ "value": "1"
+ },
+ "d": {
+ "type": "integer",
+ "value": "2"
+ }
+ }
+ },
+ "in": {
+ "type": {
+ "color": {
+ "type": "string",
+ "value": "blue"
+ },
+ "name": {
+ "type": "string",
+ "value": "cat"
+ }
+ }
+ }
+ }
+}
diff --git a/test-suite/tests/valid/dotted-keys.toml b/test-suite/tests/valid/dotted-keys.toml
new file mode 100644
index 0000000..234d64c
--- /dev/null
+++ b/test-suite/tests/valid/dotted-keys.toml
@@ -0,0 +1,7 @@
+a.b = 123
+
+[table]
+a.b.c = 1
+a . b . d = 2
+
+in = { type.name = "cat", type.color = "blue" }