Skip to content
Snippets Groups Projects
Commit d3ea34c4 authored by Torstein Strømme's avatar Torstein Strømme
Browse files

added test that changes color at same position

parent 1cc696a7
No related branches found
No related tags found
No related merge requests found
...@@ -25,6 +25,10 @@ public class TestColorGrid { ...@@ -25,6 +25,10 @@ public class TestColorGrid {
grid.set(new CellPosition(1, 2), Color.RED); grid.set(new CellPosition(1, 2), Color.RED);
assertEquals(Color.RED, grid.get(new CellPosition(1, 2))); assertEquals(Color.RED, grid.get(new CellPosition(1, 2)));
assertEquals(null, grid.get(new CellPosition(2, 1))); assertEquals(null, grid.get(new CellPosition(2, 1)));
// Check that we can set a new value and retrieve it again
grid.set(new CellPosition(1, 2), Color.GREEN);
assertEquals(Color.GREEN, grid.get(new CellPosition(1, 2)));
} }
@Test @Test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment