mirror of https://notabug.org/mthl/cuirass.git
tests: http: Reformat expected result.
* tests/http.scm ("spec->json-string"): Make expected result more readable.pull/3/head
parent
1cfacbc6ff
commit
97d6dfb108
|
@ -22,12 +22,19 @@
|
||||||
(test-begin "http")
|
(test-begin "http")
|
||||||
|
|
||||||
(test-equal "spec->json-string"
|
(test-equal "spec->json-string"
|
||||||
"{\"boolean\" : false,\"string\" : \"guix\",\"alist\" : {\"subset\" : \"hello\"},\"list\" : [1, \"2\", \"three\"],\"symbol\" : \"hydra-jobs\",\"number\" : 1}"
|
(string-append "{"
|
||||||
(spec->json-string '((#:number . 1)
|
"\"boolean\" : false,"
|
||||||
(string . "guix")
|
"\"string\" : \"guix\","
|
||||||
("symbol" . hydra-jobs)
|
"\"alist\" : {\"subset\" : \"hello\"},"
|
||||||
(#:alist (subset . "hello"))
|
"\"list\" : [1, \"2\", \"three\"],"
|
||||||
(list 1 "2" #:three)
|
"\"symbol\" : \"hydra-jobs\","
|
||||||
("boolean" . #f))))
|
"\"number\" : 1"
|
||||||
|
"}")
|
||||||
|
(spec->json-string '((#:number . 1)
|
||||||
|
(string . "guix")
|
||||||
|
("symbol" . hydra-jobs)
|
||||||
|
(#:alist (subset . "hello"))
|
||||||
|
(list 1 "2" #:three)
|
||||||
|
("boolean" . #f))))
|
||||||
|
|
||||||
(test-end)
|
(test-end)
|
||||||
|
|
Loading…
Reference in New Issue