8000 migrate _50 to junit 5 · githubniraj/Leetcode@1770ba0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1770ba0

Browse files
migrate _50 to junit 5
1 parent 6a04a4a commit 1770ba0

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
package com.fishercoder;
22

33
import com.fishercoder.solutions._50;
4-
import org.junit.BeforeClass;
5-
import org.junit.Test;
4+
import org.junit.jupiter.api.BeforeEach;
5+
import org.junit.jupiter.api.Test;
66

7-
import static org.junit.Assert.assertEquals;
7+
import static org.junit.jupiter.api.Assertions.assertEquals;
88

99
public class _50Test {
10-
private static _50.Solution1 solution1;
11-
private static _50.Solution2 solution2;
10+
private static _50.Solution1 solution1;
11+
private static _50.Solution2 solution2;
1212

13-
@BeforeClass
14-
public static void setup() {
15-
solution1 = new _50.Solution1();
16-
solution2 = new _50.Solution2();
17-
}
13+
@BeforeEach
14+
public void setup() {
15+
solution1 = new _50.Solution1();
16+
solution2 = new _50.Solution2();
17+
}
1818

19-
@Test
20-
public void test1() {
21-
assertEquals(1024.00000, solution1.myPow(2.00000, 10), 0.00001);
22-
assertEquals(1024.00000, solution2.myPow(2.00000, 10), 0.00001);
23-
}
19+
@Test
20+
public void test1() {
21+
assertEquals(1024.00000, solution1.myPow(2.00000, 10), 0.00001);
22+
assertEquals(1024.00000, solution2.myPow(2.00000, 10), 0.00001);
23+
}
2424
}

0 commit comments

Comments
 (0)
0