2023-12-01 17:49:11 -05:00
|
|
|
import { expect, test } from "bun:test";
|
|
|
|
import { main as part1 } from "./part_1";
|
|
|
|
import { main as part2 } from "./part_2";
|
|
|
|
|
2023-12-01 18:05:44 -05:00
|
|
|
// const example = ``.split("\n");;
|
2023-12-01 17:49:11 -05:00
|
|
|
const example = `1 2 3 4 5`.split(" ");
|
|
|
|
|
|
|
|
test("part1", async () => {
|
|
|
|
const answer = 5;
|
|
|
|
const res = await part1(example);
|
|
|
|
expect(res).toEqual(answer);
|
|
|
|
});
|
|
|
|
|
2023-12-01 18:05:44 -05:00
|
|
|
//test("part2", async () => {
|
|
|
|
// const answer = 5 + 5;
|
|
|
|
// const res = await part2(example);
|
|
|
|
// expect(res).toEqual(answer);
|
|
|
|
//});
|