Skip to content

Commit 2289b33

Browse files
committed
fix sum
1 parent cab2445 commit 2289b33

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/main/java/com/testrepo/AppMath.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ public AppMath() {
55
}
66

77
public int sum(int a, int b) {
8-
return a - b;
8+
return a + b;
99
}
1010
}

src/test/java/com/testrepo/AppTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ public static Test suite()
2222

2323
public void testAppMath()
2424
{
25-
assertTrue(true);
26-
//assertEquals(new AppMath().sum(1, 2), 3);
25+
assertEquals(new AppMath().sum(1, 2), 3);
2726
}
2827
}

0 commit comments

Comments
 (0)