-
Notifications
You must be signed in to change notification settings - Fork 0
/
compact.cirru
47 lines (46 loc) · 1.74 KB
/
compact.cirru
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
39
40
41
42
43
44
45
46
47
{} (:package |app)
:configs $ {} (:init-fn |app.main/main!) (:reload-fn |app.main/reload!) (:version |0.0.1)
:modules $ [] |calcit-test/ |calcit.std/
:entries $ {}
:test $ {} (:init-fn |app.test/main!) (:reload-fn |app.test/reload!)
:modules $ [] |calcit-test/
:files $ {}
|app.main $ %{} :FileEntry
:defs $ {}
|calling-func $ %{} :CodeEntry (:doc |)
:code $ quote
defn calling-func () $ println "\"todo bcc"
|main! $ %{} :CodeEntry (:doc |)
:code $ quote
defn main! () (run-tests)
set-interval 2000 $ fn () (calling-func)
|on-error $ %{} :CodeEntry (:doc |)
:code $ quote
defn on-error (message) (; draw-error-message message)
|reload! $ %{} :CodeEntry (:doc |)
:code $ quote
defn reload! () $ echo "\"Reloaded."
:ns $ %{} :CodeEntry (:doc |)
:code $ quote
ns app.main $ :require
app.test :refer $ run-tests
calcit.std.time :refer $ set-interval
|app.test $ %{} :FileEntry
:defs $ {}
|main! $ %{} :CodeEntry (:doc |)
:code $ quote
defn main! () $ run-tests
|reload! $ %{} :CodeEntry (:doc |)
:code $ quote
defn reload! () $ println "\"TODO reload"
|run-tests $ %{} :CodeEntry (:doc |)
:code $ quote
defn run-tests () (reset! *quit-on-failure? true) (test-add)
|test-add $ %{} :CodeEntry (:doc |)
:code $ quote
deftest test-add $ testing |add
is $ = 2 (+ 1 1)
:ns $ %{} :CodeEntry (:doc |)
:code $ quote
ns app.test $ :require
calcit-test.core :refer $ deftest testing is *quit-on-failure?