Solve 2025-07

This commit is contained in:
2025-12-07 12:40:54 +01:00
parent 6fbb902b32
commit 63a7a93aba
5 changed files with 109 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
import { describe, expect, it } from 'bun:test';
import { solveFirst, solveSecond } from './index.ts';
describe('2025-07', () => {
const testInput = `.......S.......
...............
.......^.......
...............
......^.^......
...............
.....^.^.^.....
...............
....^.^...^....
...............
...^.^...^.^...
...............
..^...^.....^..
...............
.^.^.^.^.^...^.
...............`;
it('first', () => {
expect(solveFirst(testInput)).toBe(21);
});
it('second', () => {
expect(solveSecond(testInput)).toBe(40);
});
});