forked from arclanguage/anarki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtests.arc
38 lines (36 loc) · 1.12 KB
/
tests.arc
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
; first hg clone https://bitbucket.org/zck/unit-test.arc
(load "unit-test.arc/unit-test.arc")
(map load:string '(
arc.arc.t
lib/app.arc.t
lib/json.arc.t
lib/lru-cache.arc.t
lib/html.arc.t
lib/ns.arc.t
lib/queue.arc.t
lib/spliceable-list.arc.t
lib/strings.arc.t
lib/streams.arc.t
lib/srv.arc.t
lib/tem.arc.t
lib/tests/core-lists-test.arc
lib/tests/core-maths-test.arc
lib/web.arc.t
; tests from conanite's rainbow
lib/tests/core-errors-continuations-test.arc
lib/tests/core-evaluation-test.arc
lib/tests/core-macros-test.arc
lib/tests/core-predicates-test.arc
lib/tests/core-special-forms-test.arc
lib/tests/core-typing-test.arc
))
(run-all-suites)
; check examples
(prn "checking examples interspersed in the codebase")
(each (name examples-and-expected) examples*
(each (example expected) pair.examples-and-expected
(if (and (~is expected '_)
(~iso eval.example expected)
(~and (caris expected 'valueof)
(iso eval.example (eval cadr.expected))))
(prn "error in example for " name ": " example))))