diff options
author | HJ <thechairman@thechairman.info> | 2023-12-02 00:10:29 -0500 |
---|---|---|
committer | HJ <thechairman@thechairman.info> | 2023-12-02 00:10:29 -0500 |
commit | a82877a093f43c11b298f2a59374b53595b40f53 (patch) | |
tree | 8948684c1c42237320c8c8704849fea84eb5663d /aoc2023/test | |
parent | a2bcd6b53e5b94ad4d6b9eb3e847dae210db1704 (diff) | |
download | gleam_aoc-a82877a093f43c11b298f2a59374b53595b40f53.tar.gz gleam_aoc-a82877a093f43c11b298f2a59374b53595b40f53.zip |
prep for day 2
Diffstat (limited to 'aoc2023/test')
-rw-r--r-- | aoc2023/test/day2/day2_test.gleam | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/aoc2023/test/day2/day2_test.gleam b/aoc2023/test/day2/day2_test.gleam new file mode 100644 index 0000000..9a28304 --- /dev/null +++ b/aoc2023/test/day2/day2_test.gleam @@ -0,0 +1,38 @@ +import gleam/list +import showtime/tests/should +import adglent.{type Example, Example} +import day2/solve + +type Problem1AnswerType = + String + +type Problem2AnswerType = + String + +/// Add examples for part 1 here: +/// ```gleam +///const part1_examples: List(Example(Problem1AnswerType)) = [Example("some input", "")] +/// ``` +const part1_examples: List(Example(Problem1AnswerType)) = [] + +/// Add examples for part 2 here: +/// ```gleam +///const part2_examples: List(Example(Problem2AnswerType)) = [Example("some input", "")] +/// ``` +const part2_examples: List(Example(Problem2AnswerType)) = [] + +pub fn part1_test() { + part1_examples + |> should.not_equal([]) + use example <- list.map(part1_examples) + solve.part1(example.input) + |> should.equal(example.answer) +} + +pub fn part2_test() { + part2_examples + |> should.not_equal([]) + use example <- list.map(part2_examples) + solve.part2(example.input) + |> should.equal(example.answer) +} |