14 lines
423 B
TypeScript
14 lines
423 B
TypeScript
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);
|
|
});
|