aboutsummaryrefslogtreecommitdiff
path: root/tests/valid
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-01-15 19:47:14 -0800
committerAlex Crichton <alex@alexcrichton.com>2015-01-15 19:47:56 -0800
commit3536cb50e646a8a9e5f26dce9a25bab101793126 (patch)
treea8f00ba67dabd5cab7c37ca538abb4fb42508f68 /tests/valid
parent46a70861d5c05fa59ec95bdc08775159162dcf64 (diff)
downloadmilf-rs-3536cb50e646a8a9e5f26dce9a25bab101793126.tar.gz
milf-rs-3536cb50e646a8a9e5f26dce9a25bab101793126.zip
Update key syntax to TOML master
* Bare keys contain a very limited set of characters now. * Keys in quotes behave the same as basic strings. Closes #47
Diffstat (limited to 'tests/valid')
-rw-r--r--tests/valid/hard_example.toml2
-rw-r--r--tests/valid/table-whitespace.toml2
-rw-r--r--tests/valid/table-with-pound.toml2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/valid/hard_example.toml b/tests/valid/hard_example.toml
index 6c47b2c..38856c8 100644
--- a/tests/valid/hard_example.toml
+++ b/tests/valid/hard_example.toml
@@ -13,7 +13,7 @@ test_string = "You'll hate me after this - #" # " Annoying, isn't it?
harder_test_string = " And when \"'s are in the string, along with # \"" # "and comments are there too"
# Things will get harder
- [the.hard.bit#]
+ [the.hard."bit#"]
"what?" = "You don't think some user won't do that?"
multi_line_array = [
"]",
diff --git a/tests/valid/table-whitespace.toml b/tests/valid/table-whitespace.toml
index 798756c..daf881d 100644
--- a/tests/valid/table-whitespace.toml
+++ b/tests/valid/table-whitespace.toml
@@ -1 +1 @@
-[valid key]
+["valid key"]
diff --git a/tests/valid/table-with-pound.toml b/tests/valid/table-with-pound.toml
index e7b777e..33f2c4f 100644
--- a/tests/valid/table-with-pound.toml
+++ b/tests/valid/table-with-pound.toml
@@ -1,2 +1,2 @@
-[key#group]
+["key#group"]
answer = 42