diff options
Diffstat (limited to 'AoC2022/aocclj/test')
-rw-r--r-- | AoC2022/aocclj/test/aocclj/core_test.clj | 7 | ||||
-rw-r--r-- | AoC2022/aocclj/test/aocclj/day01_test.clj | 10 |
2 files changed, 17 insertions, 0 deletions
diff --git a/AoC2022/aocclj/test/aocclj/core_test.clj b/AoC2022/aocclj/test/aocclj/core_test.clj new file mode 100644 index 0000000..15216e7 --- /dev/null +++ b/AoC2022/aocclj/test/aocclj/core_test.clj @@ -0,0 +1,7 @@ +(ns aocclj.core-test + (:require [clojure.test :refer :all] + [aocclj.core :refer :all])) + +(deftest a-test + (testing "FIXME, I fail." + (is (= 1 1)))) diff --git a/AoC2022/aocclj/test/aocclj/day01_test.clj b/AoC2022/aocclj/test/aocclj/day01_test.clj new file mode 100644 index 0000000..ca1262c --- /dev/null +++ b/AoC2022/aocclj/test/aocclj/day01_test.clj @@ -0,0 +1,10 @@ +(ns aocclj.day01-test + (:require [aocclj.day01 :as sut] + [clojure.test :as t] + [clojure.string :as str])) + +(t/deftest solutions + (let [input (str/split-lines (slurp "../01/input"))] + (t/are [expected function] (= expected (function input)) + 75622 sut/part1 + 213159 sut/part2))) |