liminix/pkgs/devout/test.fnl

21 lines
317 B
Text
Raw Normal View History

2024-04-20 18:45:40 +02:00
(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")