From 3119e2a2b550919326f7850242a6083c81a9b1fa Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Wed, 7 Dec 2022 00:33:16 +0100 Subject: app: allow empty arguments --- tests/test.mew | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/test.mew b/tests/test.mew index 5587d90..32d9df1 100644 --- a/tests/test.mew +++ b/tests/test.mew @@ -141,6 +141,12 @@ (test "\n" (with-output-to-string (fun () (prn)))) (test 3 (esc ret (with-output-to-string (fun () (ret (prn 1 2 3))))))) +(test-group "app" + (test 15 (app + '(4 5 6))) + (test 15 (app + 4 5 '(6))) + (test 15 (app + 4 5 6 '())) + (test 0 (app +))) + (test-group "seq" (test #t (void? (seq))) (test 1 (seq 1)) -- cgit 1.4.1