summaryrefslogtreecommitdiff
path: root/lib/flip.test.fnl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/flip.test.fnl')
-rw-r--r--lib/flip.test.fnl13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/flip.test.fnl b/lib/flip.test.fnl
new file mode 100644
index 0000000..32fa005
--- /dev/null
+++ b/lib/flip.test.fnl
@@ -0,0 +1,13 @@
+(let [{: flip} (require :lib.flip)
+ {: describe :end test-end} (require :lib.test)]
+ (describe "flip()" (fn [t]
+ (let [input {:apple "red" :banana "yellow"}
+ expected {:red "apple" :yellow "banana"}
+ ]
+ (t {:given "a table"
+ :should "flip that table!"
+ : expected
+ :actual (flip input)})
+ (test-end)))))
+
+