diff options
author | Oscar Najera <hi@oscarnajera.com> | 2023-02-11 19:34:20 +0100 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2023-02-11 19:34:20 +0100 |
commit | efcc7c32228d87f9f41cd5963491e9d11ee30dfb (patch) | |
tree | 3768cd36876edc6b8b53621244d8a0803569f053 /AoC2022/aocclj/test | |
parent | 1a0a9714f95767bdad046dbf32182967fcefb5f9 (diff) | |
download | scratch-efcc7c32228d87f9f41cd5963491e9d11ee30dfb.tar.gz scratch-efcc7c32228d87f9f41cd5963491e9d11ee30dfb.tar.bz2 scratch-efcc7c32228d87f9f41cd5963491e9d11ee30dfb.zip |
Clojure day05
Diffstat (limited to 'AoC2022/aocclj/test')
-rw-r--r-- | AoC2022/aocclj/test/aocclj/core_test.clj | 7 |
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 c42285f..38e4f72 100644 --- a/AoC2022/aocclj/test/aocclj/core_test.clj +++ b/AoC2022/aocclj/test/aocclj/core_test.clj @@ -4,6 +4,7 @@ [aocclj.day02 :as day02] [aocclj.day03 :as day03] [aocclj.day04 :as day04] + [aocclj.day05 :as day05] [aocclj.core :refer :all] [clojure.string :as str])) @@ -30,3 +31,9 @@ (are [expected function] (= expected (day04/solver function input)) 515 day04/subcontained 883 day04/overlap))) + +(deftest day05 + (let [input (slurp "../05/input")] + (are [expected single] (= expected (day05/solver single input)) + "TPGVQPFDH" true + "DMRDFRHHH" false))) |