|
12 | 12 | class GermainPrimeAndSafePrimeTest { |
13 | 13 |
|
14 | 14 | static Stream<Arguments> provideNumbersForGermainPrimes() { |
15 | | - return Stream.of( |
16 | | - Arguments.of(2, Boolean.TRUE), Arguments.of(3, Boolean.TRUE), Arguments.of(5, Boolean.TRUE), Arguments.of(11, Boolean.TRUE), Arguments.of(23, Boolean.TRUE), Arguments.of(293, Boolean.TRUE), Arguments.of(4, false), Arguments.of(7, false), Arguments.of(9, false), Arguments.of(1, false)); |
| 15 | + return Stream.of(Arguments.of(2, Boolean.TRUE), Arguments.of(3, Boolean.TRUE), Arguments.of(5, Boolean.TRUE), Arguments.of(11, Boolean.TRUE), Arguments.of(23, Boolean.TRUE), Arguments.of(293, Boolean.TRUE), Arguments.of(4, Boolean.FALSE), Arguments.of(7, Boolean.FALSE), |
| 16 | + Arguments.of(9, Boolean.FALSE), Arguments.of(1, Boolean.FALSE)); |
17 | 17 | } |
18 | 18 |
|
19 | 19 | static Stream<Arguments> provideNumbersForSafePrimes() { |
20 | | - return Stream.of(Arguments.of(5, Boolean.TRUE), Arguments.of(7, Boolean.TRUE), Arguments.of(11, Boolean.TRUE), Arguments.of(23, Boolean.TRUE), Arguments.of(1283, Boolean.TRUE), Arguments.of(4, false), Arguments.of(13, false), Arguments.of(9, false), Arguments.of(1, false)); |
| 20 | + return Stream.of(Arguments.of(5, Boolean.TRUE), Arguments.of(7, Boolean.TRUE), Arguments.of(11, Boolean.TRUE), Arguments.of(23, Boolean.TRUE), Arguments.of(1283, Boolean.TRUE), Arguments.of(4, Boolean.FALSE), Arguments.of(13, Boolean.FALSE), Arguments.of(9, Boolean.FALSE), |
| 21 | + Arguments.of(1, Boolean.FALSE)); |
21 | 22 | } |
22 | 23 |
|
23 | 24 | static Stream<Integer> provideNegativeNumbers() { |
|
0 commit comments