Skip to content
Snippets Groups Projects
Unverified Commit 97d6dfb1 authored by Mathieu Lirzin's avatar Mathieu Lirzin
Browse files

tests: http: Reformat expected result.

* tests/http.scm ("spec->json-string"): Make expected result more
readable.
parent 1cfacbc6
No related branches found
Tags 0.25.0
No related merge requests found
......@@ -22,12 +22,19 @@
(test-begin "http")
(test-equal "spec->json-string"
"{\"boolean\" : false,\"string\" : \"guix\",\"alist\" : {\"subset\" : \"hello\"},\"list\" : [1, \"2\", \"three\"],\"symbol\" : \"hydra-jobs\",\"number\" : 1}"
(spec->json-string '((#:number . 1)
(string . "guix")
("symbol" . hydra-jobs)
(#:alist (subset . "hello"))
(list 1 "2" #:three)
("boolean" . #f))))
(string-append "{"
"\"boolean\" : false,"
"\"string\" : \"guix\","
"\"alist\" : {\"subset\" : \"hello\"},"
"\"list\" : [1, \"2\", \"three\"],"
"\"symbol\" : \"hydra-jobs\","
"\"number\" : 1"
"}")
(spec->json-string '((#:number . 1)
(string . "guix")
("symbol" . hydra-jobs)
(#:alist (subset . "hello"))
(list 1 "2" #:three)
("boolean" . #f))))
(test-end)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment