File tree 2 files changed +8
-8
lines changed
main/java/com/thealgorithms/maths
test/java/com/thealgorithms/maths 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public final class GoldbachConjecture {
16
16
private GoldbachConjecture () {
17
17
}
18
18
19
- public static String getPrimeSum (int number ){
19
+ public static String getPrimeSum (int number ) {
20
20
String s1 ;
21
21
if (number % 2 == 0 && number > 2 ) {
22
22
for (int i = 0 ; i <= number / 2 ; i ++) {
Original file line number Diff line number Diff line change 7
7
8
8
public class GoldbachConjectureTest {
9
9
@ Test
10
- void GoldbachTestWithZero () {
10
+ void goldbachTestWithZero () {
11
11
Assertions .assertEquals ("Wrong Input" , getPrimeSum (0 ));
12
12
}
13
13
@ Test
14
- void GoldbachTestWithNegative () {
14
+ void goldbachTestWithNegative () {
15
15
Assertions .assertEquals ("Wrong Input" , getPrimeSum (-50 ));
16
16
}
17
17
@ Test
18
- void GoldbachTestWith2 () {
18
+ void goldbachTestWith2 () {
19
19
Assertions .assertEquals ("Wrong Input" , getPrimeSum (2 ));
20
20
}
21
21
@ Test
22
- void GoldbachTestWithOdd () {
22
+ void goldbachTestWithOdd () {
23
23
Assertions .assertEquals ("Wrong Input" , getPrimeSum (25 ));
24
24
}
25
25
@ Test
26
- void GoldbachTestEven1 () {
26
+ void goldbachTestEven1 () {
27
27
Assertions .assertEquals ("3 + 5 = 8" , getPrimeSum (8 ));
28
28
}
29
29
@ Test
30
- void GoldbachTestEven2 () {
30
+ void goldbachTestEven2 () {
31
31
Assertions .assertEquals ("3 + 19 = 22" , getPrimeSum (22 ));
32
32
}
33
33
@ Test
34
- void GoldbachTest1 () {
34
+ void goldbachTest1 () {
35
35
Assertions .assertEquals ("3 + 7 = 10" , getPrimeSum (10 ));
36
36
}
37
37
}
You can’t perform that action at this time.
0 commit comments