aboutsummaryrefslogtreecommitdiffstats
path: root/AoC2022/aocclj/test/aocclj/day01_test.clj
diff options
context:
space:
mode:
Diffstat (limited to 'AoC2022/aocclj/test/aocclj/day01_test.clj')
-rw-r--r--AoC2022/aocclj/test/aocclj/day01_test.clj10
1 files changed, 10 insertions, 0 deletions
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)))