Skip to content

Commit 324c61c

Browse files
tendaittFridaTveit
authored andcommitted
Update rectangles version file and add test. Closes exercism#1372 (exercism#1394)
* update version file to 1.1.0 * add test to verify no rectangle when there are no rows * fix test naming to match canonical data * correct spacing for added test
1 parent dc746fe commit 324c61c

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

exercises/rectangles/.meta/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.0
1+
1.1.0

exercises/rectangles/src/test/java/RectangleCounterTest.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,20 @@ public void setUp() {
1414
}
1515

1616
@Test
17-
public void testInputWithNoColumnsContainsNoRectangles() {
17+
public void testInputWithNoRowsContainsNoRectangles() {
1818
String[] inputGrid = new String[]{};
1919

2020
assertEquals(0, rectangleCounter.countRectangles(inputGrid));
2121
}
22+
23+
@Ignore("Remove to run test")
24+
@Test
25+
public void testInputWithNoColumnsContainsNoRectangles() {
26+
String[] inputGrid = new String[]{""};
2227

28+
assertEquals(0, rectangleCounter.countRectangles(inputGrid));
29+
}
30+
2331
@Ignore("Remove to run test")
2432
@Test
2533
public void testNonTrivialInputWithNoRectangles() {

0 commit comments

Comments
 (0)