summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDariqq <dariqq@posteo.net>2025-10-03 10:23:15 +0000
committerNguyễn Gia Phong <cnx@loang.net>2026-04-29 11:17:05 +0900
commitfceb3915d845a4e64fcae57e12232d0436b78758 (patch)
tree97c6a05bc0c19abdb19af6f9ad6f48ffd2ebfc77 /tests
parent87b652ccc75d62d301e44880f0b29154fca64be2 (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>
Diffstat (limited to 'tests')
-rw-r--r--tests/toml.scm12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/toml.scm b/tests/toml.scm
index b40129f393..a86c50eb1b 100644
--- a/tests/toml.scm
+++ b/tests/toml.scm
@@ -449,11 +449,13 @@ color = \"gray\""))
;; Not implemented.
(test-expect-fail 1)
(test-equal "parse-toml: Array of tables"
- '(("fruits" ((("name" . "apple")
- ("physical" (("color" . "red") ("shape" . "round")))
- ("varieties" ((("name" . "red delicious")) (("name" . "granny smith")))))
- (("name" . "banana")
- ("varieties" (((("name" . "plantain")))))))))
+ '(("fruits" . ((("name" . "apple")
+ ("physical" . (("color" . "red")
+ ("shape" . "round")))
+ ("varieties" . ((("name" . "red delicious"))
+ (("name" . "granny smith")))))
+ (("name" . "banana")
+ ("varieties" . ((("name" . "plantain"))))))))
(parse-toml "[[fruits]]
name = \"apple\"