release 0.1.0
This commit is contained in:
commit
30d94536a9
90 changed files with 7722 additions and 0 deletions
17
modules/core/assert.owa
Normal file
17
modules/core/assert.owa
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
(namespace assert
|
||||
(defmacro ok! [] (if (bool.and $%&)
|
||||
:true
|
||||
(throw! "assertion failed")))
|
||||
|
||||
(defmacro not! [] (if (bool.and $%&)
|
||||
(throw! "assertion failed")
|
||||
:true))
|
||||
|
||||
(defmacro eq! [] (if-eq $(%&)
|
||||
:true
|
||||
(throw! "assertion failed")))
|
||||
|
||||
(defmacro nq! [] (if-eq $(%&)
|
||||
(throw! "assertion failed")
|
||||
:true))
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue