- isolate core game logic and move it to src/game.fnl - main.fnl should be just the ui now - move all table funcs into lib/table - move all (1) string funcs into lib/string - move all game funcs into lib/game/
14 lines
316 B
Fennel
14 lines
316 B
Fennel
(let [{: capitalize
|
|
} (require :lib.string)
|
|
{: describe
|
|
: test-end} (require :lib.test)]
|
|
|
|
(describe "# STRING" (fn []
|
|
(describe "capitalize()" (fn [t]
|
|
(t {:given "a string"
|
|
:should "capitalize it"
|
|
:expected :Giraffe
|
|
:actual (capitalize :giraffe)})))
|
|
(test-end))))
|
|
|