UNPKG

expeditaet

Version:
22 lines (18 loc) 768 B
import { loadTaskResources } from '@alexaegis/advent-of-code-lib'; import { describe, expect, it } from 'vitest'; import packageJson from '../package.json'; import { p2 } from './p2.js'; describe('2018 - Day 13 - Part Two', () => { it('should solve the input', async () => { const resources = await loadTaskResources(packageJson.aoc); expect(p2(resources.input)).toEqual('36,123'); }); it('should solve the first example', async () => { const resources = await loadTaskResources(packageJson.aoc, 'example.1.txt'); expect(p2(resources.input)).toEqual(undefined); }); it('should solve the second example', async () => { const resources = await loadTaskResources(packageJson.aoc, 'example.2.txt'); expect(p2(resources.input)).toEqual('6,4'); }); });