aoc/solution.test.ts.template

28 lines
856 B
Plaintext
Raw Normal View History

import { readlines } from "../_utils";
const solution = require("./solution");
describe("day %%DAY%%: %%PUZZLE_NAME%%, pt 1", () => {
test("sample input", async () => {
const sample = await readlines("./day_%%DAY_LONG%%/sample.txt");
expect(solution.part1_solver(sample)).toBe(0);
});
test("submission input", async () => {
const input = await readlines("./day_%%DAY_LONG%%/input.txt");
expect(solution.part1_solver(input)).toBe(0);
});
});
describe("day %%DAY%%: %%PUZZLE_NAME%%, pt 2", () => {
test("sample input", async () => {
const sample = await readlines("./day_%%DAY_LONG%%/sample.txt");
expect(solution.part2_solver(sample)).toBe(0);
});
test("submission input", async () => {
const input = await readlines("./day_%%DAY_LONG%%/input.txt");
expect(solution.part2_solver(input)).toBe(0);
});
});