Skip to content

Commit 0cdbe89

Browse files
committed
Updated files.
1 parent 7b3de7e commit 0cdbe89

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

java/hw/src/main/java/Library.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
1-
/*
2-
* This Java source file was generated by the Gradle 'init' task.
3-
*/
4-
5-
61
public class Library
72
{
8-
93
public int add(int x, int y)
104
{
11-
125
return x + y;
13-
146
}
15-
167
}
Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,19 @@
1-
/*
2-
* This Java source file was generated by the Gradle 'init' task.
3-
*/
4-
5-
61
import org.junit.Test;
7-
82
import static org.junit.Assert.*;
93

104

11-
125
public class LibraryTest
136
{
14-
157
@Test
168
public void addTest()
179
{
18-
1910
int x = 5;
2011
int y = 6;
2112
int sum = 11;
2213

2314
Library l = new Library();
2415
int res = l.add(x, y);
2516

26-
assertEquals(sum, res);
27-
17+
assertEquals(sum, res);
2818
}
29-
3019
}

0 commit comments

Comments
 (0)