aboutsummaryrefslogtreecommitdiff
path: root/tests/test.lisp
blob: 614fcec744d50cfbdfa4a85e1cf1380a41761b87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
(defmacro test-module (module)
  (let ((name (symbol->string module)))
    `(progn
      (princ (format "[TEST] %s\n" ,name))
      (load (format "tests/%s.lisp" ,name))
      (princ (format "[PASS] %s\n" ,name)))))

(test-module math)
(test-module symbol)
(test-module eq)
(test-module arithmetic)
(test-module error)
(test-module logic)
(test-module tailcall)
(test-module tailcall-big)
(test-module control-flow)
(test-module lambda)
(test-module comment)
(test-module macro)
(test-module let-binding)

(princ "\n\nTest with intensive GC:\n\n")
(_alwaysgc #t)

(test-module math)
(test-module symbol)
(test-module eq)
(test-module arithmetic)
(test-module tailcall)
(test-module error)
(test-module logic)
(test-module control-flow)
(test-module lambda)
(test-module comment)
(test-module macro)
(test-module let-binding)

(exit)