aboutsummaryrefslogtreecommitdiffstats
path: root/AoC2022/aocclj/test
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2023-02-06 00:01:53 +0100
committerOscar Najera <hi@oscarnajera.com>2023-02-06 00:01:53 +0100
commit99bcf55e2df61cef89cb88213e6feddd88294d47 (patch)
tree4aba0a910a4b0f1f8819346f7fc9b9da06dc5999 /AoC2022/aocclj/test
parent57e563bf8f4fae7364118619318b338f16792473 (diff)
downloadscratch-99bcf55e2df61cef89cb88213e6feddd88294d47.tar.gz
scratch-99bcf55e2df61cef89cb88213e6feddd88294d47.tar.bz2
scratch-99bcf55e2df61cef89cb88213e6feddd88294d47.zip
day 3 review
Diffstat (limited to 'AoC2022/aocclj/test')
-rw-r--r--AoC2022/aocclj/test/aocclj/core_test.clj19
-rw-r--r--AoC2022/aocclj/test/aocclj/day01_test.clj10
2 files changed, 15 insertions, 14 deletions
diff --git a/AoC2022/aocclj/test/aocclj/core_test.clj b/AoC2022/aocclj/test/aocclj/core_test.clj
index 15216e7..dc3f3bb 100644
--- a/AoC2022/aocclj/test/aocclj/core_test.clj
+++ b/AoC2022/aocclj/test/aocclj/core_test.clj
@@ -1,7 +1,18 @@
(ns aocclj.core-test
(:require [clojure.test :refer :all]
- [aocclj.core :refer :all]))
+ [aocclj.day01 :as day01]
+ [aocclj.day03 :as day03]
+ [aocclj.core :refer :all]
+ [clojure.string :as str]))
-(deftest a-test
- (testing "FIXME, I fail."
- (is (= 1 1))))
+(deftest day01
+ (let [input (str/split-lines (slurp "../01/input"))]
+ (are [expected function] (= expected (function input))
+ 75622 day01/part1
+ 213159 day01/part2)))
+
+(deftest day03
+ (let [input (str/split-lines (slurp "../03/input"))]
+ (are [expected function] (= expected (function input))
+ 8072 day03/part1
+ 2567 day03/part2)))
diff --git a/AoC2022/aocclj/test/aocclj/day01_test.clj b/AoC2022/aocclj/test/aocclj/day01_test.clj
deleted file mode 100644
index ca1262c..0000000
--- a/AoC2022/aocclj/test/aocclj/day01_test.clj
+++ /dev/null
@@ -1,10 +0,0 @@
-(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)))