adventofcode/2022/05/test.js

21 lines
561 B
JavaScript
Raw Normal View History

2022-12-05 16:16:31 +00:00
import { test, expect, describe } from "vitest";
import { expectSolution } from "../01/main.js";
2022-12-07 23:36:16 +00:00
import { solutionPart1, puzzleInput, sample } from "./part1.js";
2022-12-05 16:16:31 +00:00
import { solutionPart2 } from "./part2.js";
describe("part 1", () => {
2022-12-07 23:36:16 +00:00
test("sample", () => {
expect(solutionPart1(sample)).toEqual("CMZ");
});
2022-12-05 16:16:31 +00:00
test.only("solution", () => {
expectSolution(solutionPart1(puzzleInput)).toEqual("VPCDMSLWJ");
});
});
describe("part 2", () => {
test.todo("solution", () => {
expectSolution(solutionPart2(puzzleInput)).toEqual("TODO");
});
});