10 lines
263 B
TypeScript
10 lines
263 B
TypeScript
|
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);
|
||
|
});
|