release 0.1.0
This commit is contained in:
commit
30d94536a9
90 changed files with 7722 additions and 0 deletions
16
modules/core/test.owa
Normal file
16
modules/core/test.owa
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
(namespace test
|
||||
(def target (lookup __test__ null))
|
||||
|
||||
(defmacro if-target [then]
|
||||
(if-eq (test.target null) :null (seq $%%)))
|
||||
|
||||
(defmacro case [name] (test.if-target
|
||||
(builtins.errors.try
|
||||
(scope $%& (trace "Running test \"" $name "\": OK ✅"))
|
||||
#(trace "Running test \"" $name "\": FAILED ❌ (" %2 ": " %1 ")"))))
|
||||
|
||||
(defmacro space [name] (if
|
||||
(bool.or (eq? test.target $name) (eq? test.target "."))
|
||||
(namespace $name (seq $%&))
|
||||
))
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue