chore: current WIP day 7b and 8

This commit is contained in:
2025-12-09 15:54:15 +01:00
parent 2e86795761
commit 28e400f221
6 changed files with 1278 additions and 18 deletions

View File

@@ -0,0 +1,13 @@
import { assertEquals } from "@std/assert";
import {
get_three_largest_pairings_mul,
read_junction_box_3d_positions,
} from "../exercises/day_8.ts";
Deno.test("Day 8 - A", async () => {
const junction_boxes_coords = await read_junction_box_3d_positions(
"src/exercises/assets/day_8_test_input.txt",
);
const result = get_three_largest_pairings_mul(junction_boxes_coords, 10);
assertEquals(result, 40);
});