mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-06-10 03:28:54 +02:00
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>
This commit is contained in:
+7
-5
@@ -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\"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user