Jasmine
1.2.0 revision 1337005947
finished in 0.133s
Passing 30 specs
Cell
coordinates
should have a x coordinate
should have a y coordinate
visited
should not be initially visited
should be able to visit cell
Maze
should expose draw method
should get canvas by id
should have a width
should have a height
MazeGenerator
should expose generate method
should have a cell stack
Graph
initialization
should initialize a two dimensional array with cells
getCellDistance
should return 4
getCellAt
should return a cell
should save changes to cell
should not return a cell outside of graph boundaries
should not return a cell at negative x
should not return a cell at negative y
cellUnvisitedNeighbors
should not return visited neighbors
cellConnectedNeighbors
should return cell neighbors
areConnected
should return true
should return false
removeEdgeBetween
should remove wall to neighbor on the top
should remove wall to neighbor on the right
should remove wall to neighbor on the bottom
should remove wall to neighbor on the left
removeAllEdges
should remove all walls
addEdgeBetween
should add wall to neighbor on the top
should add wall to neighbor on the right
should add wall to neighbor on the bottom
should add wall to neighbor on the left