summaryrefslogtreecommitdiff
path: root/template/example.test.ts
blob: a0522cc4098725eff234f835fb52f3b967d86924 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { expect, test } from "bun:test";
import { main as part1 } from "./part_1";
import { main as part2 } from "./part_2";

// const example = ``.split("\n");;
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);
//});