adventofcode/2024/01/test.ts

10 lines
263 B
TypeScript
Raw Normal View History

2024-12-04 20:46:05 +00:00
import { expect } from 'jsr:@std/expect';
import { readFile, solve as d1Solve } from './part1.ts';
const input = readFile( import.meta.dirname + '/input');
Deno.test( 'part 1', async () => {
expect(d1Solve(...((await input) as any))).toEqual(1889772);
});