my aoc solutions
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

do day2; part 2 needs some work tbf | do day 3

nnuuvv 47d524b3 6430171c

+33 -5
+33 -5
test/advent_of_code_test.gleam
··· 1 + import aoc_2025/day_3 2 + import gleam/int 1 3 import gleeunit 4 + import gleeunit/should 2 5 3 6 pub fn main() -> Nil { 4 7 gleeunit.main() 5 8 } 6 9 7 - // gleeunit test functions end in `_test` 8 - pub fn hello_world_test() { 9 - let name = "Joe" 10 - let greeting = "Hello, " <> name <> "!" 10 + pub fn day_3_part_2_test() { 11 + let bank = 12 + day_3.BatteryBank([ 13 + // 14 + 4, 3, 2, 1, 15 + // 16 + 4, 3, 2, 1, 17 + // 18 + 4, 3, 2, 1, 19 + // 20 + 4, 3, 2, 1, 21 + // 22 + 4, 3, 2, 1, 23 + // 24 + 4, 3, 2, 1, 25 + // 26 + 4, 3, 2, 1, 27 + // 28 + 4, 3, 2, 1, 29 + // 30 + 4, 3, 2, 1, 31 + // 32 + 4, 3, 2, 1, 33 + // 34 + 4, 3, 2, 1, 35 + // 36 + 4, 3, 2, 1, 37 + ]) 11 38 12 - assert greeting == "Hello, Joe!" 39 + let answer = day_3.pt_2([bank]) 40 + should.equal(answer, 444_444_444_444) 13 41 }