From cdb12dbc28cc441745bad55e384494bc8942586a Mon Sep 17 00:00:00 2001 From: "Elizabeth (Lizzy) Hunt" Date: Fri, 1 Dec 2023 15:49:11 -0700 Subject: Template (#1) * tempalte foo * buff aoc stuff --- template/example.test.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 template/example.test.ts (limited to 'template/example.test.ts') diff --git a/template/example.test.ts b/template/example.test.ts new file mode 100644 index 0000000..f3e80eb --- /dev/null +++ b/template/example.test.ts @@ -0,0 +1,18 @@ +import { expect, test } from "bun:test"; +import { main as part1 } from "./part_1"; +import { main as part2 } from "./part_2"; + +// const example = ``; +const example = `1 2 3 4 5`.split(" "); + +test("part1", async () => { + const answer = 5; + const res = await part1(example); + expect(res).toEqual(answer); +}); + +test("part2", async () => { + const answer = 5 + 5; + const res = await part2(example); + expect(res).toEqual(answer); +}); -- cgit v1.2.3-70-g09d2