1
0
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:
Dariqq
2025-10-03 10:23:15 +00:00
committed by Nguyễn Gia Phong
parent 87b652ccc7
commit fceb3915d8
+7 -5
View File
@@ -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\"