diff options
| author | Dariqq <dariqq@posteo.net> | 2025-12-22 17:22:51 +0000 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-08-08 23:01:52 +0100 |
| commit | e1c736072b64d6b8711b8e5f70a9935ffcde0640 (patch) | |
| tree | 407bc474d3c7c4d6c05735756cf908c17f3941aa /tests | |
| parent | d62469f1878026eb82630f3f787e69cc34449a03 (diff) | |
build: toml: Adapt for toml 1.1.0
* guix/build/toml.scm: Change to v1.1.0
Merges: guix/guix!5156
Change-Id: I6d878e4c01352c0ff7d510d3ea9f7d41b8d75e7d
Reviewed-by: Ludovic Courtès <ludo@gnu.org>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/toml.scm | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/tests/toml.scm b/tests/toml.scm index b261856fcdf..7cfa5984445 100644 --- a/tests/toml.scm +++ b/tests/toml.scm | |||
| @@ -105,7 +105,7 @@ fruit.apple.smooth = true")) | |||
| 105 | 105 | ||
| 106 | (test-equal "parse-toml: String" | 106 | (test-equal "parse-toml: String" |
| 107 | '(("str" . "I'm a string. \"You can quote me\". Name\tJos\u00E9\nLocation\tSF.")) | 107 | '(("str" . "I'm a string. \"You can quote me\". Name\tJos\u00E9\nLocation\tSF.")) |
| 108 | (parse-toml "str = \"I'm a string. \\\"You can quote me\\\". Name\\tJos\\u00E9\\nLocation\\tSF.\"")) | 108 | (parse-toml "str = \"I'm a string. \\\"You can quote me\\\". Name\\tJos\\xE9\\nLocation\\tSF.\"")) |
| 109 | 109 | ||
| 110 | (test-equal "parse-toml: Empty string" | 110 | (test-equal "parse-toml: Empty string" |
| 111 | '(("str1" . "") | 111 | '(("str1" . "") |
| @@ -403,10 +403,24 @@ fruit.apple.taste.sweet = true")) | |||
| 403 | (test-equal "parse-toml: Inline tables" | 403 | (test-equal "parse-toml: Inline tables" |
| 404 | '(("name" ("first" . "Tom") ("last" . "Preston-Werner")) | 404 | '(("name" ("first" . "Tom") ("last" . "Preston-Werner")) |
| 405 | ("point" ("x" . 1) ("y" . 2)) | 405 | ("point" ("x" . 1) ("y" . 2)) |
| 406 | ("animal" ("type" ("name" . "pug")))) | 406 | ("animal" ("type" ("name" . "pug"))) |
| 407 | ("contact" . (("personal" . (("name" . "Donald Duck") | ||
| 408 | ("email" . "donald@duckburg.com"))) | ||
| 409 | ("work" . (("name" . "Coin cleaner") | ||
| 410 | ("email" . "donald@ScroogeCorp.com")))))) | ||
| 407 | (parse-toml "name = { first = \"Tom\", last = \"Preston-Werner\" } | 411 | (parse-toml "name = { first = \"Tom\", last = \"Preston-Werner\" } |
| 408 | point = { x = 1, y = 2 } | 412 | point = { x = 1, y = 2 } |
| 409 | animal = { type.name = \"pug\" }")) | 413 | animal = { type.name = \"pug\" } |
| 414 | contact = { | ||
| 415 | personal = { | ||
| 416 | name = \"Donald Duck\", | ||
| 417 | email = \"donald@duckburg.com\", | ||
| 418 | }, | ||
| 419 | work = { | ||
| 420 | name = \"Coin cleaner\", | ||
| 421 | email = \"donald@ScroogeCorp.com\", | ||
| 422 | }, | ||
| 423 | }")) | ||
| 410 | 424 | ||
| 411 | (test-equal "parse-toml: Empty inline table" | 425 | (test-equal "parse-toml: Empty inline table" |
| 412 | '(("name") | 426 | '(("name") |
