chore: current WIP day 7b and 8
This commit is contained in:
13
src/__tests__/day_8_test.ts
Normal file
13
src/__tests__/day_8_test.ts
Normal 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);
|
||||
});
|
||||
Reference in New Issue
Block a user