Solve 2025-01

This commit is contained in:
2025-12-01 11:07:34 +01:00
parent 837a43b4c2
commit 0ed63a276e
4 changed files with 86 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
import { describe, expect, it } from 'bun:test';
import { solveFirst, solveSecond } from './index.ts';
describe('2025-01', () => {
const testInput = `L68
L30
R48
L5
R60
L55
L1
L99
R14
L82`;
it('first', () => {
expect(solveFirst(testInput)).toBe(3);
});
it('second', () => {
expect(solveSecond(testInput)).toBe(6);
expect(solveSecond(`R1000`)).toBe(10);
});
});