From 672902f184913a9d9e01382a1553fe78a236a040 Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Fri, 2 Dec 2022 11:05:04 -0500 Subject: [PATCH] add template for a new day --- 2022/template/part1.js | 1 + 2022/template/part2.js | 2 ++ 2022/template/test.js | 20 ++++++++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 2022/template/part1.js create mode 100644 2022/template/part2.js create mode 100644 2022/template/test.js diff --git a/2022/template/part1.js b/2022/template/part1.js new file mode 100644 index 0000000..b509eb0 --- /dev/null +++ b/2022/template/part1.js @@ -0,0 +1 @@ +import * as R from "remeda"; diff --git a/2022/template/part2.js b/2022/template/part2.js new file mode 100644 index 0000000..31477e8 --- /dev/null +++ b/2022/template/part2.js @@ -0,0 +1,2 @@ +import * as R from "remeda"; + diff --git a/2022/template/test.js b/2022/template/test.js new file mode 100644 index 0000000..9859a0e --- /dev/null +++ b/2022/template/test.js @@ -0,0 +1,20 @@ +import { test, expect, describe } from "vitest"; + +import { expectSolution } from "../01/main.js"; +import { + solutionPart1, + puzzleInput, +} from "./part1.js"; +import { solutionPart2 } from "./part2.js"; + +describe("part 1", () => { + test.todo("solution", () => { + expectSolution(solutionPart1(puzzleInput)).toEqual('TODO'); + }); +}); + +describe("part 2", () => { + test.todo("solution", () => { + expectSolution(solutionPart2(puzzleInput)).toEqual('TODO'); + }); +});