From 6db3b34d7203639ef4286c237a6e536259f92352 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Mon, 8 Aug 2022 11:49:44 +0200 Subject: read-print: Add 'case' and 'cond' special forms. * guix/read-print.scm (%special-forms): Add 'case' and 'cond'. * tests/read-print.scm: Add tests. --- tests/read-print.scm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'tests/read-print.scm') diff --git a/tests/read-print.scm b/tests/read-print.scm index 004fcff19f..b484e28022 100644 --- a/tests/read-print.scm +++ b/tests/read-print.scm @@ -141,6 +141,21 @@ expressions." (let ((z (+ x y))) (* z z)))") +(test-pretty-print "\ +(case x + ((1) + 'one) + ((2) + 'two))") + +(test-pretty-print "\ +(cond + ((zero? x) + 'zero) + ((odd? x) + 'odd) + (else #f))") + (test-pretty-print "\ #~(string-append #$coreutils \"/bin/uname\")") -- cgit v1.2.3