Skip to content

Commit 0395e56

Browse files
fixed identified bugs
1 parent 609cd02 commit 0395e56

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/test/java/com/thealgorithms/maths/GermainPrimeAndSafePrimeTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
class GermainPrimeAndSafePrimeTest {
1313

1414
static Stream<Arguments> provideNumbersForGermainPrimes() {
15-
return Stream.of(Arguments.of(2, true), Arguments.of(3, true), Arguments.of(5, true), Arguments.of(11, true), Arguments.of(23, true), Arguments.of(293, true), Arguments.of(4, false), Arguments.of(7, false), Arguments.of(9, false), Arguments.of(1, false));
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));
1617
}
1718

1819
static Stream<Arguments> provideNumbersForSafePrimes() {
19-
return Stream.of(Arguments.of(5, true), Arguments.of(7, true), Arguments.of(11, true), Arguments.of(23, true), Arguments.of(1283, 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, false), Arguments.of(13, false), Arguments.of(9, false), Arguments.of(1, false));
2021
}
2122

2223
static Stream<Integer> provideNegativeNumbers() {

0 commit comments

Comments
 (0)