Skip to content

Commit 694b372

Browse files
committed
Add get row,col test
1 parent 5befb7a commit 694b372

File tree

1 file changed

+6
-0
lines changed
  • src/test/kotlin/com/soberg/aoc/utlities/datastructures

1 file changed

+6
-0
lines changed

src/test/kotlin/com/soberg/aoc/utlities/datastructures/Grid2DTest.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ class Grid2DTest {
3939
.isEqualTo(333)
4040
}
4141

42+
@Test
43+
fun `return expected element for get row, col`() {
44+
assertThat(testGrid[3, 3])
45+
.isEqualTo(4444)
46+
}
47+
4248
@Test
4349
fun `return expected element for elementAt`() {
4450
val actual = testGrid.elementAt(Location(2, 2), Direction.NorthWest, 2)

0 commit comments

Comments
 (0)