Skip to content

Commit 4caecb0

Browse files
committed
Fixed formatting issues in GoldbachConjecture and the test class
1 parent ff54b57 commit 4caecb0

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/main/java/com/thealgorithms/maths/GoldbachConjecture.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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++) {

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,31 @@
77

88
public 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
}

0 commit comments

Comments
 (0)