diff options
author | Alex Crichton <alex@alexcrichton.com> | 2015-01-15 12:44:05 -0800 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2015-01-15 12:44:05 -0800 |
commit | 0d8ce979a4d98c895f5f75826e8c49f02a64f311 (patch) | |
tree | 43dfa62e4459bd526deda6ebb79eb183a4d82af0 /tests/invalid/table-array-implicit.toml | |
parent | aef183823c6de926cf1b598cae537e30dc6ad103 (diff) | |
download | milf-rs-0d8ce979a4d98c895f5f75826e8c49f02a64f311.tar.gz milf-rs-0d8ce979a4d98c895f5f75826e8c49f02a64f311.zip |
Move tests to integration tests
Diffstat (limited to 'tests/invalid/table-array-implicit.toml')
-rw-r--r-- | tests/invalid/table-array-implicit.toml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/invalid/table-array-implicit.toml b/tests/invalid/table-array-implicit.toml new file mode 100644 index 0000000..05f2507 --- /dev/null +++ b/tests/invalid/table-array-implicit.toml @@ -0,0 +1,14 @@ +# This test is a bit tricky. It should fail because the first use of +# `[[albums.songs]]` without first declaring `albums` implies that `albums` +# must be a table. The alternative would be quite weird. Namely, it wouldn't +# comply with the TOML spec: "Each double-bracketed sub-table will belong to +# the most *recently* defined table element *above* it." +# +# This is in contrast to the *valid* test, table-array-implicit where +# `[[albums.songs]]` works by itself, so long as `[[albums]]` isn't declared +# later. (Although, `[albums]` could be.) +[[albums.songs]] +name = "Glory Days" + +[[albums]] +name = "Born in the USA" |