new package "devout", does nothing yet
This commit is contained in:
20
pkgs/devout/test.fnl
Normal file
20
pkgs/devout/test.fnl
Normal file
@@ -0,0 +1,20 @@
|
||||
(import-macros { : expect= } :anoia.assert)
|
||||
|
||||
|
||||
(fn database []
|
||||
{
|
||||
:find (fn [terms] [])
|
||||
})
|
||||
|
||||
|
||||
(macro example [description & body]
|
||||
`(do ,body))
|
||||
|
||||
(example
|
||||
"given an empty database, search for some criteria matches no entries"
|
||||
(let [db (database)]
|
||||
(expect= (db:find {:partname "boot"}) [])))
|
||||
|
||||
|
||||
|
||||
(print "OK")
|
||||
Reference in New Issue
Block a user