2023-12-02 01:01:55 +00:00
|
|
|
import path from "path";
|
2022-12-05 01:25:26 +00:00
|
|
|
|
2023-12-02 01:01:55 +00:00
|
|
|
import { readlines } from "../../_utils";
|
|
|
|
import { part1_solver, part2_solver } from "./solution";
|
2022-12-05 01:25:26 +00:00
|
|
|
|
2023-12-02 01:01:55 +00:00
|
|
|
describe("day $DAY_SHORT: $PUZZLE_NAME, pt 1", () => {
|
2022-12-05 01:25:26 +00:00
|
|
|
test("sample input", async () => {
|
2023-12-02 01:01:55 +00:00
|
|
|
const sample = await readlines(path.resolve(__dirname, "./sample.txt"));
|
|
|
|
expect(part1_solver(sample)).toBe(-1);
|
2022-12-05 01:25:26 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
test("submission input", async () => {
|
2023-12-02 01:01:55 +00:00
|
|
|
const input = await readlines(path.resolve(__dirname, "./input.txt"));
|
|
|
|
expect(part1_solver(input)).toBe(-1);
|
2022-12-05 01:25:26 +00:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2023-12-02 01:01:55 +00:00
|
|
|
describe("day $DAY_SHORT: $PUZZLE_NAME, pt 2", () => {
|
2022-12-05 01:25:26 +00:00
|
|
|
test("sample input", async () => {
|
2023-12-02 01:01:55 +00:00
|
|
|
const sample = await readlines(path.resolve(__dirname, "./sample.txt"));
|
|
|
|
expect(part2_solver(sample)).toBe(-1);
|
2022-12-05 01:25:26 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
test("submission input", async () => {
|
2023-12-02 01:01:55 +00:00
|
|
|
const input = await readlines(path.resolve(__dirname, "./input.txt"));
|
|
|
|
expect(part2_solver(input)).toBe(-1);
|
2022-12-05 01:25:26 +00:00
|
|
|
});
|
|
|
|
});
|