From 9323c1285a8a9f7ec33e88d26f102d92c7a6e2ec Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Sun, 10 Oct 2021 14:15:45 +0200 Subject: Add cond special form --- tests/booleans_expected.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/booleans_expected.txt') diff --git a/tests/booleans_expected.txt b/tests/booleans_expected.txt index d05d314..f0612b8 100644 --- a/tests/booleans_expected.txt +++ b/tests/booleans_expected.txt @@ -41,3 +41,8 @@ (if (or (+ 1 2 3) false) (+ 1 2 3) (+ 7 8 9)) -> 6 (if true 7) -> 7 (if false 7) -> () +(cond ((and true true true) 1) ((or true true false) 2) (else 3)) -> 1 +(cond ((and true true false) 1) ((or true true false) 2) (else 3)) -> 2 +(cond ((and true true false) 1) ((or false false false) 2) (else 3)) -> 3 +(cond ((and true true true) 1) ((or true true false) 2)) -> () +(cond ((and true true true) (+ 1 2 3)) ((or true true false) 2) (else 3)) -> 6 -- cgit v1.2.1