Skip to content

Commit fd02519

Browse files
committed
getLenth test
1 parent 38daf8e commit fd02519

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

src/test/java/Area/AreaTest.java

+6
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ public void overlapTest() {
6565

6666
}
6767

68+
@Test
69+
public void getLengthTest() {
70+
Area area = new Area(1, 4);
71+
Assert.assertEquals(3, area.getLength());
72+
}
73+
6874
@Test
6975
public void equalsTest() {
7076
Area a1 = new Area(1,3);
-3 Bytes
Binary file not shown.
124 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)