adventofcode/2024/02/test.ts

15 lines
371 B
TypeScript
Raw Normal View History

2024-12-04 20:46:05 +00:00
import { expect } from 'jsr:@std/expect';
import { readInput, solve as p1Solve } from './part1.ts';
import { solve as p2Solve } from './part2.ts';
const reports = await readInput( import.meta.dirname + '/input');
Deno.test( 'part 1', () => {
expect( p1Solve(reports)).toEqual(598);
});
Deno.test( 'part 2', () => {
expect( p2Solve(reports)).toEqual(634);
});