Skip to content

Commit af85908

Browse files
authored
Added pyramid frustum test case
1 parent c6dbcef commit af85908

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/java/com/thealgorithms/maths/VolumeTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,8 @@ public void volume() {
3535

3636
/* test frustum */
3737
assertEquals(359.188760060433, Volume.volumeFrustumOfCone(3, 5, 7));
38+
39+
/* test pyramid frustum */
40+
assertEquals(140.0, Volume.volumeFrustumOfPyramid(6, 24, 10));
3841
}
3942
}

0 commit comments

Comments
 (0)