expeditaet
Version:
Advent of Code Solutions
18 lines (15 loc) • 570 B
text/typescript
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('2019 - Day 6 - Part Two', () => {
it('should solve the input', async () => {
const resources = await loadTaskResources(packageJson.aoc);
expect(p2(resources.input)).toEqual(430);
});
it('should be that that the first example resolves to 4', () => {
expect(p2('COM)B\nB)C\nC)D\nD)E\nE)F\nB)G\nG)H\nD)I\nE)J\nJ)K\nK)L\nK)YOU\nI)SAN')).toEqual(
4,
);
});
});