Files
aoc/2023/25/index.test.ts
T
2024-12-01 16:26:16 +01:00

28 lines
592 B
TypeScript

import { describe, expect, it } from 'bun:test';
import { solveFirst, solveSecond } from './index.ts';
describe('2023-25', () => {
it('first', () => {
const testInput = `jqt: rhn xhk nvd
rsh: frs pzl lsr
xhk: hfx
cmg: qnr nvd lhk bvb
rhn: xhk bvb hfx
bvb: xhk hfx
pzl: lsr hfx nvd
qnr: nvd
ntq: jqt hfx bvb xhk
nvd: lhk
lsr: lhk
rzs: qnr cmg lsr rsh
frs: qnr lhk lsr`;
expect(solveFirst(testInput)).toBe(54);
});
it('second', () => {
// TODO: add second input
const testInput = ``;
// TODO: add second solution
expect(solveSecond(testInput)).toBe(0);
});
});