From 74371302593ee2ee365e697911c364246f460b63 Mon Sep 17 00:00:00 2001 From: nea Date: Thu, 10 Aug 2023 01:37:33 +0200 Subject: Add builtins --- test/res/test.lisp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'test/res') diff --git a/test/res/test.lisp b/test/res/test.lisp index edadffd..5f32bee 100644 --- a/test/res/test.lisp +++ b/test/res/test.lisp @@ -2,10 +2,6 @@ (defun myfun (var) (debuglog var)) (myfun :myfunworks) ((lambda (a) (debuglog a)) :atom) -(debuglog a) -(defun testsomething (c) (debuglog (if c "truthy value" "falsey value"))) -(testsomething true) -(testsomething false) (defun testlog (a ...) (seq (debuglog "a" a) (debuglog "..." ...))) @@ -16,3 +12,8 @@ (debuglog "-" (- 1 3)) (debuglog "*" (* 10 10)) (debuglog "/" (/ 1 3 2)) +(debuglog "============") +(defun testsomething (c) (debuglog (if! c (seq (debuglog "left evaluated") (return "truthy value")) "falsey value"))) +(testsomething true) +(testsomething false) +(noop) -- cgit