mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-27 22:43:30 +08:00
16
src/test/java/com/thealgorithms/maths/AliquotSumTest.java
Normal file
16
src/test/java/com/thealgorithms/maths/AliquotSumTest.java
Normal file
@ -0,0 +1,16 @@
|
||||
package com.thealgorithms.maths;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user