Skip to content

Commit

Permalink
Add more cases in to isReachable
Browse files Browse the repository at this point in the history
  • Loading branch information
eloylp committed Nov 17, 2019
1 parent 3238b69 commit 9db6b43
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ func TestIsReachableNeighbour(t *testing.T) {
{0, 0, -1, 0, "top left cell with offset x-1 is out of range", false},
{0, 0, 0, -1, "top left cell with offset y-1 is out of range", false},
{0, 3, 0, 1, "bottom left cell with offset y+1 is out of range", false},
{0, 3, -1, 0, "bottom left cell with offset x-1 is out of range", false},
{3, 0, 1, 0, "top right cell with offset x+1 is out of range", false},
{3, 0, 0, -1, "top right cell with offset y-1 is out of range", false},
{3, 3, 1, 0, "bottom right cell with offset x+1 is out of range", false},
{3, 3, 1, 1, "bottom right cell with offset y+1 is out of range", false},
}
Expand Down

0 comments on commit 9db6b43

Please sign in to comment.