File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed
src/test/java/com/fishercoder Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change 11package com .fishercoder ;
22
33import 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
99public 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}
You can’t perform that action at this time.
0 commit comments