aboutsummaryrefslogtreecommitdiffstats
path: root/AoC2022/aocclj/test
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2023-02-07 18:48:59 +0100
committerOscar Najera <hi@oscarnajera.com>2023-02-07 18:48:59 +0100
commit0b36acbe058a0afb63f2c35ce8cc24fca042e8f3 (patch)
treee821358f384eb4d5b3a58e8d13bff1cdb094bbda /AoC2022/aocclj/test
parent99bcf55e2df61cef89cb88213e6feddd88294d47 (diff)
downloadscratch-0b36acbe058a0afb63f2c35ce8cc24fca042e8f3.tar.gz
scratch-0b36acbe058a0afb63f2c35ce8cc24fca042e8f3.tar.bz2
scratch-0b36acbe058a0afb63f2c35ce8cc24fca042e8f3.zip
day04
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 dc3f3bb..fd34fe0 100644
--- a/AoC2022/aocclj/test/aocclj/core_test.clj
+++ b/AoC2022/aocclj/test/aocclj/core_test.clj
@@ -2,6 +2,7 @@
(:require [clojure.test :refer :all]
[aocclj.day01 :as day01]
[aocclj.day03 :as day03]
+ [aocclj.day04 :as day04]
[aocclj.core :refer :all]
[clojure.string :as str]))
@@ -16,3 +17,9 @@
(are [expected function] (= expected (function input))
8072 day03/part1
2567 day03/part2)))
+
+(deftest day04
+ (let [input (str/split-lines (slurp "../04/input"))]
+ (are [expected function] (= expected (day04/solver function input))
+ 515 day04/subcontained
+ 883 day04/overlap)))