UNPKG

expeditaet

Version:
21 lines (18 loc) 616 B
import { loadTaskResources } from '@alexaegis/advent-of-code-lib'; import { describe, expect, it } from 'vitest'; import packageJson from '../package.json'; import { p1 } from './p1.js'; describe('2022 14 p1', () => { describe('the input', () => { it('should solve the input', async () => { const { input } = await loadTaskResources(packageJson.aoc); expect(await p1(input)).toEqual(665); }); }); describe('example 1', () => { it('should be solved', async () => { const { input } = await loadTaskResources(packageJson.aoc, 'example.1.txt'); expect(await p1(input)).toEqual(24); }); }); });