|
|
@@ -27,6 +27,16 @@ public class PrimeFactorsCalculatorTest {
|
|
|
test(List.of(2, 5), 10);
|
|
|
}
|
|
|
|
|
|
+ @Test
|
|
|
+ void testGetFactorsValues10(){
|
|
|
+ test(List.of(11), 11);
|
|
|
+ test(List.of(13), 13);
|
|
|
+ test(List.of(2,2,5), 20);
|
|
|
+ test(List.of(67), 67);
|
|
|
+ test(List.of(7,11), 77);
|
|
|
+ test(List.of(79), 79);
|
|
|
+ }
|
|
|
+
|
|
|
private void test(List<Integer> l, int n) {
|
|
|
List<Integer> factors = calculator.getFactors(n);
|
|
|
assertIterableEquals(l, factors);
|