File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
main/java/com/thealgorithms/maths
test/java/com/thealgorithms/maths Expand file tree Collapse file tree 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 {
1616 private GoldbachConjecture () {
1717 }
1818
19- public static String getPrimeSum (int number ){
19+ public static String getPrimeSum (int number ) {
2020 String s1 ;
2121 if (number % 2 == 0 && number > 2 ) {
2222 for (int i = 0 ; i <= number / 2 ; i ++) {
Original file line number Diff line number Diff line change 77
88public class GoldbachConjectureTest {
99 @ Test
10- void GoldbachTestWithZero () {
10+ void goldbachTestWithZero () {
1111 Assertions .assertEquals ("Wrong Input" , getPrimeSum (0 ));
1212 }
1313 @ Test
14- void GoldbachTestWithNegative () {
14+ void goldbachTestWithNegative () {
1515 Assertions .assertEquals ("Wrong Input" , getPrimeSum (-50 ));
1616 }
1717 @ Test
18- void GoldbachTestWith2 () {
18+ void goldbachTestWith2 () {
1919 Assertions .assertEquals ("Wrong Input" , getPrimeSum (2 ));
2020 }
2121 @ Test
22- void GoldbachTestWithOdd () {
22+ void goldbachTestWithOdd () {
2323 Assertions .assertEquals ("Wrong Input" , getPrimeSum (25 ));
2424 }
2525 @ Test
26- void GoldbachTestEven1 () {
26+ void goldbachTestEven1 () {
2727 Assertions .assertEquals ("3 + 5 = 8" , getPrimeSum (8 ));
2828 }
2929 @ Test
30- void GoldbachTestEven2 () {
30+ void goldbachTestEven2 () {
3131 Assertions .assertEquals ("3 + 19 = 22" , getPrimeSum (22 ));
3232 }
3333 @ Test
34- void GoldbachTest1 () {
34+ void goldbachTest1 () {
3535 Assertions .assertEquals ("3 + 7 = 10" , getPrimeSum (10 ));
3636 }
3737}
You can’t perform that action at this time.
0 commit comments