Skip to content

Commit 0ed86c0

Browse files
committed
Update Test_Balloon.java
1 parent 6478e6e commit 0ed86c0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

_apcsa/301_writing_classes/U05aBalloon/src/Test_Balloon.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ public void test_inflate_and_getVolume() {
2727
temp = new Balloon();
2828
temp.inflate(10.3);
2929
assertEquals(4577.20415410562,temp.getVolume(),0.0000000001);
30+
// inflating by 0.0 should give the same result as before ~4577
31+
temp.inflate(0.0);
32+
assertEquals(4577.20415410562,temp.getVolume(),0.0000000001);
3033
}
3134

3235
}

0 commit comments

Comments
 (0)