14 lines
532 B
Fennel
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)))))
|
|
|
|
|