diff options
| author | Dariqq <dariqq@posteo.net> | 2025-10-03 10:23:15 +0000 |
|---|---|---|
| committer | Nguyễn Gia Phong <cnx@loang.net> | 2026-04-29 11:17:05 +0900 |
| commit | fceb3915d845a4e64fcae57e12232d0436b78758 (patch) | |
| tree | 97c6a05bc0c19abdb19af6f9ad6f48ffd2ebfc77 | |
| parent | 87b652ccc75d62d301e44880f0b29154fca64be2 (diff) | |
tests: toml: Fix nested array-of-tables test.
* tests/toml.scm (parse-toml: Array of tables):
Adjust the expected value for nested arrays.
Change-Id: I4dbe27c0120f147226f82cda5ae3c27cb2ed6f49
Merges: https://codeberg.org/guix/guix/pulls/3245
Signed-off-by: Nguyễn Gia Phong <cnx@loang.net>
| -rw-r--r-- | tests/toml.scm | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/toml.scm b/tests/toml.scm index b40129f393a..a86c50eb1b1 100644 --- a/tests/toml.scm +++ b/tests/toml.scm | |||
| @@ -449,11 +449,13 @@ color = \"gray\"")) | |||
| 449 | ;; Not implemented. | 449 | ;; Not implemented. |
| 450 | (test-expect-fail 1) | 450 | (test-expect-fail 1) |
| 451 | (test-equal "parse-toml: Array of tables" | 451 | (test-equal "parse-toml: Array of tables" |
| 452 | '(("fruits" ((("name" . "apple") | 452 | '(("fruits" . ((("name" . "apple") |
| 453 | ("physical" (("color" . "red") ("shape" . "round"))) | 453 | ("physical" . (("color" . "red") |
| 454 | ("varieties" ((("name" . "red delicious")) (("name" . "granny smith"))))) | 454 | ("shape" . "round"))) |
| 455 | (("name" . "banana") | 455 | ("varieties" . ((("name" . "red delicious")) |
| 456 | ("varieties" (((("name" . "plantain"))))))))) | 456 | (("name" . "granny smith"))))) |
| 457 | (("name" . "banana") | ||
| 458 | ("varieties" . ((("name" . "plantain")))))))) | ||
| 457 | (parse-toml "[[fruits]] | 459 | (parse-toml "[[fruits]] |
| 458 | name = \"apple\" | 460 | name = \"apple\" |
| 459 | 461 | ||
