Prepended all namespaces with 'cc.journeyman'; tests run, 4 don't pass.

This commit is contained in:
Simon Brooke 2020-11-15 21:09:18 +00:00
parent 37dbb767ac
commit 310896cc95
No known key found for this signature in database
GPG key ID: A7A4F18D1D4DF987
34 changed files with 107 additions and 81 deletions

View file

@ -0,0 +1,12 @@
(ns cc.journeyman.the-great-game.utils-test
(:require [clojure.test :refer :all]
[cc.journeyman.the-great-game.utils :refer [cyclic?]]))
(deftest cyclic-tests
(testing "Detecting cyclic routes"
(let [actual (cyclic? '(:glasgow :edinburgh :glasgow))
expected true]
(is (= actual expected)))
(let [actual (cyclic? '(:edinburgh :dundee :aberdeen :buckie))
expected false]
(is (= actual expected)))))