MCPcopy Create free account
hub / github.com/TheAlgorithms/Java / testCeil

Method testCeil

src/test/java/com/thealgorithms/maths/CeilTest.java:12–16  ·  view source on GitHub ↗
(double input, int expected)

Source from the content-addressed store, hash-verified

10public class CeilTest {
11
12 @ParameterizedTest
13 @CsvSource({"7.057, 8", "7.004, 8", "-13.004, -13", "0.98, 1", "-11.357, -11"})
14 void testCeil(double input, int expected) {
15 assertEquals(expected, Ceil.ceil(input));
16 }
17
18 @ParameterizedTest
19 @MethodSource("edgeCaseProvider")

Callers

nothing calls this directly

Calls 1

ceilMethod · 0.95

Tested by

no test coverage detected