mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-27 22:43:30 +08:00
17 lines
436 B
Java
17 lines
436 B
Java
package com.thealgorithms.maths;
|
|
|
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
|
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
public class AliquotSumTest {
|
|
|
|
@Test
|
|
void testGetMaxValue() {
|
|
assertEquals(0, AliquotSum.getAliquotValue(1));
|
|
assertEquals(6, AliquotSum.getAliquotValue(6));
|
|
assertEquals(9, AliquotSum.getAliquotValue(15));
|
|
assertEquals(1, AliquotSum.getAliquotValue(19));
|
|
}
|
|
}
|