aboutsummaryrefslogtreecommitdiff
path: root/aoc2023/test
diff options
context:
space:
mode:
authorJ.J <thechairman@thechairman.info>2023-12-23 15:24:05 -0500
committerJ.J <thechairman@thechairman.info>2023-12-23 15:24:05 -0500
commiteb492eea3adbba1995d870c6c4a9c22d09a4c96f (patch)
tree1c1cb795dbe362eefa6ce58a4fd5ecbf85212d77 /aoc2023/test
parent75b519b90cbdae6cba83e60c1fe6f5ac27132e4b (diff)
downloadgleam_aoc-eb492eea3adbba1995d870c6c4a9c22d09a4c96f.tar.gz
gleam_aoc-eb492eea3adbba1995d870c6c4a9c22d09a4c96f.zip
day 23 gleam complete
Diffstat (limited to 'aoc2023/test')
-rw-r--r--aoc2023/test/day23/day23_test.gleam62
1 files changed, 58 insertions, 4 deletions
diff --git a/aoc2023/test/day23/day23_test.gleam b/aoc2023/test/day23/day23_test.gleam
index eb9496f..206571c 100644
--- a/aoc2023/test/day23/day23_test.gleam
+++ b/aoc2023/test/day23/day23_test.gleam
@@ -4,22 +4,76 @@ import adglent.{type Example, Example}
import day23/solve
type Problem1AnswerType =
- String
+ Int
type Problem2AnswerType =
- String
+ Int
/// Add examples for part 1 here:
/// ```gleam
///const part1_examples: List(Example(Problem1AnswerType)) = [Example("some input", "")]
/// ```
-const part1_examples: List(Example(Problem1AnswerType)) = []
+const part1_examples: List(Example(Problem1AnswerType)) = [
+ Example(
+ "#.#####################
+#.......#########...###
+#######.#########.#.###
+###.....#.>.>.###.#.###
+###v#####.#v#.###.#.###
+###.>...#.#.#.....#...#
+###v###.#.#.#########.#
+###...#.#.#.......#...#
+#####.#.#.#######.#.###
+#.....#.#.#.......#...#
+#.#####.#.#.#########v#
+#.#...#...#...###...>.#
+#.#.#v#######v###.###v#
+#...#.>.#...>.>.#.###.#
+#####v#.#.###v#.#.###.#
+#.....#...#...#.#.#...#
+#.#########.###.#.#.###
+#...###...#...#...#.###
+###.###.#.###v#####v###
+#...#...#.#.>.>.#.>.###
+#.###.###.#.###.#.#v###
+#.....###...###...#...#
+#####################.#",
+ 94,
+ ),
+]
/// Add examples for part 2 here:
/// ```gleam
///const part2_examples: List(Example(Problem2AnswerType)) = [Example("some input", "")]
/// ```
-const part2_examples: List(Example(Problem2AnswerType)) = []
+const part2_examples: List(Example(Problem2AnswerType)) = [
+ Example(
+ "#.#####################
+#.......#########...###
+#######.#########.#.###
+###.....#.>.>.###.#.###
+###v#####.#v#.###.#.###
+###.>...#.#.#.....#...#
+###v###.#.#.#########.#
+###...#.#.#.......#...#
+#####.#.#.#######.#.###
+#.....#.#.#.......#...#
+#.#####.#.#.#########v#
+#.#...#...#...###...>.#
+#.#.#v#######v###.###v#
+#...#.>.#...>.>.#.###.#
+#####v#.#.###v#.#.###.#
+#.....#...#...#.#.#...#
+#.#########.###.#.#.###
+#...###...#...#...#.###
+###.###.#.###v#####v###
+#...#...#.#.>.>.#.>.###
+#.###.###.#.###.#.#v###
+#.....###...###...#...#
+#####################.#",
+ 154,
+ ),
+]
pub fn part1_test() {
part1_examples