mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2026-03-13 15:21:15 +08:00
merge: Made all tests follow file strcture convention already in-place (#820)
* add empty line to end of file * Move all test files to /test following convention
This commit is contained in:
8
Cellular-Automata/test/ConwaysGameOfLife.test.js
Normal file
8
Cellular-Automata/test/ConwaysGameOfLife.test.js
Normal file
@@ -0,0 +1,8 @@
|
||||
import { newGeneration } from '../ConwaysGameOfLife'
|
||||
|
||||
describe('newGeneration', () => {
|
||||
it('should produce the next generation according to the rules', () => {
|
||||
expect(newGeneration([[0, 1, 0], [0, 1, 0], [0, 1, 0]]))
|
||||
.toEqual([[0, 0, 0], [1, 1, 1], [0, 0, 0]])
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user