aboutsummaryrefslogtreecommitdiffstats
path: root/AoC2022/aocclj/test
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2023-02-08 20:21:07 +0100
committerOscar Najera <hi@oscarnajera.com>2023-02-08 20:21:07 +0100
commit1a0a9714f95767bdad046dbf32182967fcefb5f9 (patch)
treebe3ae01c99d91cfee295e6ed893816d804fb6fde /AoC2022/aocclj/test
parent0b36acbe058a0afb63f2c35ce8cc24fca042e8f3 (diff)
downloadscratch-1a0a9714f95767bdad046dbf32182967fcefb5f9.tar.gz
scratch-1a0a9714f95767bdad046dbf32182967fcefb5f9.tar.bz2
scratch-1a0a9714f95767bdad046dbf32182967fcefb5f9.zip
day02
Diffstat (limited to 'AoC2022/aocclj/test')
-rw-r--r--AoC2022/aocclj/test/aocclj/core_test.clj7
1 files changed, 7 insertions, 0 deletions
diff --git a/AoC2022/aocclj/test/aocclj/core_test.clj b/AoC2022/aocclj/test/aocclj/core_test.clj
index fd34fe0..c42285f 100644
--- a/AoC2022/aocclj/test/aocclj/core_test.clj
+++ b/AoC2022/aocclj/test/aocclj/core_test.clj
@@ -1,6 +1,7 @@
(ns aocclj.core-test
(:require [clojure.test :refer :all]
[aocclj.day01 :as day01]
+ [aocclj.day02 :as day02]
[aocclj.day03 :as day03]
[aocclj.day04 :as day04]
[aocclj.core :refer :all]
@@ -12,6 +13,12 @@
75622 day01/part1
213159 day01/part2)))
+(deftest day02
+ (let [input (str/split-lines (slurp "../02/input"))]
+ (are [expected function] (= expected (day02/solver function input))
+ 12535 day02/static-play
+ 15457 day02/reactive-play)))
+
(deftest day03
(let [input (str/split-lines (slurp "../03/input"))]
(are [expected function] (= expected (function input))