generated from mariotacke/template-advent-of-code
-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.js
40 lines (35 loc) · 849 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('assert');
const part1 = require('./part1');
const part2 = require('./part2');
describe('Day 11: Dumbo Octopus', () => {
it('should calculate flashes after 100 steps', () => {
const input =
`5483143223
2745854711
5264556173
6141336146
6357385478
4167524645
2176841721
6882881134
4846848554
5283751526`;
assert.strictEqual(part1(input), 1656);
});
describe('Part Two', () => {
it('should calculate the exact moment when all octopuses flash', () => {
const input =
`5483143223
2745854711
5264556173
6141336146
6357385478
4167524645
2176841721
6882881134
4846848554
5283751526`;
assert.strictEqual(part2(input), 195);
});
});
});