15 lines
371 B
TypeScript
15 lines
371 B
TypeScript
|
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);
|
||
|
});
|