We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc721de commit faaebcbCopy full SHA for faaebcb
2018/day-12/plants.test.js
@@ -62,6 +62,9 @@ describe('--- Day 12: Subterranean Sustainability ---', () => {
62
describe('advance()', () => {
63
it('advances the next generation', () => {
64
const expected = [
65
+ { position: -6, state: '.' },
66
+ { position: -5, state: '.' },
67
+ { position: -4, state: '.' },
68
{ position: -3, state: '.' },
69
{ position: -2, state: '.' },
70
{ position: -1, state: '.' },
@@ -92,7 +95,10 @@ describe('--- Day 12: Subterranean Sustainability ---', () => {
92
95
{ position: 24, state: '#' },
93
96
{ position: 25, state: '.' },
94
97
{ position: 26, state: '.' },
- { position: 27, state: '.' }
98
+ { position: 27, state: '.' },
99
+ { position: 28, state: '.' },
100
+ { position: 29, state: '.' },
101
+ { position: 30, state: '.' }
102
]
103
let plantTracker = new Plants(initialState, rules)
104
plantTracker.advance()
0 commit comments