aboutsummaryrefslogtreecommitdiff
path: root/tests/test.lisp
diff options
context:
space:
mode:
authorMistivia <i@mistivia.com>2025-06-22 23:32:56 +0800
committerMistivia <i@mistivia.com>2025-06-22 23:33:12 +0800
commit7563e4e5c3c346b8b11f7e66cdb11c81bcf58fa9 (patch)
tree3d3ca32fdab4e1b21dc352d0bc98d3e8bedd452f /tests/test.lisp
parentdaf22cff78522a1b5140fb7b02be3006ea4a2236 (diff)
add symbol functions
Diffstat (limited to 'tests/test.lisp')
-rw-r--r--tests/test.lisp34
1 files changed, 18 insertions, 16 deletions
diff --git a/tests/test.lisp b/tests/test.lisp
index 9b0f888..ca8195c 100644
--- a/tests/test.lisp
+++ b/tests/test.lisp
@@ -1,19 +1,21 @@
-(defmacro test-module (name)
- `(progn
- (princ (format "[TEST] %s\n" ,name))
- (load (format "%s.lisp" ,name))
- (princ (format "[PASS] %s\n" ,name))))
+(defmacro test-module (module)
+ (let ((name (symbol->string module)))
+ `(progn
+ (princ (format "[TEST] %s\n" ,name))
+ (load (format "%s.lisp" ,name))
+ (princ (format "[PASS] %s\n" ,name)))))
-(test-module "math")
-(test-module "eq")
-(test-module "arithmetic")
-(test-module "error")
-(test-module "logic")
-(test-module "tailcall")
-(test-module "control-flow")
-(test-module "lambda")
-(test-module "comment")
-(test-module "macro")
-(test-module "let-binding")
+(test-module math)
+(test-module symbol)
+(test-module eq)
+(test-module arithmetic)
+(test-module error)
+(test-module logic)
+(test-module tailcall)
+(test-module control-flow)
+(test-module lambda)
+(test-module comment)
+(test-module macro)
+(test-module let-binding)
(exit)