Skip to content

Commit

Permalink
Add get row,col test
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoberg committed Dec 6, 2024
1 parent 5befb7a commit 694b372
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ class Grid2DTest {
.isEqualTo(333)
}

@Test
fun `return expected element for get row, col`() {
assertThat(testGrid[3, 3])
.isEqualTo(4444)
}

@Test
fun `return expected element for elementAt`() {
val actual = testGrid.elementAt(Location(2, 2), Direction.NorthWest, 2)
Expand Down

0 comments on commit 694b372

Please sign in to comment.