Skip to content
Snippets Groups Projects
Commit ec621cb6 authored by Rohan Gene Isaac Vance's avatar Rohan Gene Isaac Vance
Browse files

1-Need-to-fix-code-errors

added tag prev commit, added testing drawVertical to unit test
parent 385c68ba
No related branches found
No related tags found
No related merge requests found
......@@ -112,8 +112,6 @@ public class DotsAndBoxesGrid {
return false;
}
// x < 0 || x > width
// A box is complete if the north and south horizontals and the east and west
// verticals have all been drawn.
// FIXME: You'll need to fix this code (after writing a test first).
......
......@@ -50,7 +50,9 @@ public class DotsAndBoxesGridTest {
public void drawMethodsDetectRedrawnLines() {
DotsAndBoxesGrid case2 = new DotsAndBoxesGrid(5, 5, 2);
case2.drawHorizontal(0, 0, 0);
case2.drawVertical(0, 0, 1);
assertThrows(RuntimeException.class, () -> case2.drawHorizontal(0, 0, 0));
assertThrows(RuntimeException.class, () -> case2.drawVertical(0, 0, 0));
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment