9mm/lib/kvflip.test.fnl
dozens f985dc4e5c feat: add moving phase
also moves `moves` into the game object and moves updating `moves` to
game:update
2024-06-06 22:49:52 -06:00

14 lines
532 B
Fennel

(let [{: kvflip} (require :lib.kvflip)
{: describe :end test-end} (require :lib.test)]
(describe "kvflip()" (fn [t]
(let [input {:apple "red" :banana "yellow"}
expected {:red "apple" :yellow "banana"}
]
(t {:given "a table"
:should "kvflip that table!"
: expected
:actual (kvflip input)})
(test-end)))))