Files
aoc/2025/10/index.test.ts
T
2025-12-10 13:40:56 +01:00

12 lines
392 B
TypeScript

import { describe, expect, it } from 'bun:test';
import { solveFirst } from './index.ts';
describe('2025-10', () => {
const testInput = `[.##.] (3) (1,3) (2) (2,3) (0,2) (0,1) {3,5,4,7}
[...#.] (0,2,3,4) (2,3) (0,4) (0,1,2) (1,2,3,4) {7,5,12,7,2}
[.###.#] (0,1,2,3,4) (0,3,4) (0,1,2,4,5) (1,2) {10,11,11,5,10,5}`;
it('first', () => {
expect(solveFirst(testInput)).toBe(7);
});
});