generated from mariotacke/template-advent-of-code
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.js
40 lines (35 loc) · 846 Bytes
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
const assert = require('node:assert');
const part1 = require('./part1');
const part2 = require('./part2');
describe('Day 3: ', () => {
it('should sum all part numbers in the engine schematic', () => {
const input =
`467..114..
...*......
..35..633.
......#...
617*......
.....+.58.
..592.....
......755.
...$.*....
.664.598..`;
assert.strictEqual(part1(input), 4361);
});
describe('Part Two', () => {
it('should sum all gear ratios in the engine schematic', () => {
const input =
`467..114..
...*......
..35..633.
......#...
617*......
.....+.58.
..592.....
......755.
...$.*....
.664.598..`;
assert.strictEqual(part2(input), 467835);
});
});
});