Solve 2025-04

This commit is contained in:
2025-12-04 10:27:34 +01:00
parent b43c9bba56
commit fed21d417d
4 changed files with 77 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
import { describe, expect, it } from 'bun:test';
import { solveFirst, solveSecond } from './index.ts';
describe('2025-04', () => {
const testInput = `..@@.@@@@.
@@@.@.@.@@
@@@@@.@.@@
@.@@@@..@.
@@.@@@@.@@
.@@@@@@@.@
.@.@.@.@@@
@.@@@.@@@@
.@@@@@@@@.
@.@.@@@.@.`;
it('first', () => {
expect(solveFirst(testInput)).toBe(13);
});
it('second', () => {
expect(solveSecond(testInput)).toBe(43);
});
});