File tree 2 files changed +6
-5
lines changed
main/java/com/fishercoder/solutions
test/java/com/fishercoder
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ public int calculate(String s) {
29
29
stack .addLast (stack .pollLast () * num );
30
30
}
31
31
sign = s .charAt (i );
32
+ //reset num for the next integer
32
33
num = 0 ;
33
34
}
34
35
}
Original file line number Diff line number Diff line change 1
1
package com .fishercoder ;
2
2
3
3
import com .fishercoder .solutions ._227 ;
4
- import org .junit .BeforeClass ;
5
- import org .junit .Test ;
4
+ import org .junit .jupiter . api . BeforeEach ;
5
+ import org .junit .jupiter . api . Test ;
6
6
7
- import static org .junit .Assert .assertEquals ;
7
+ import static org .junit .jupiter . api . Assertions .assertEquals ;
8
8
9
9
public class _227Test {
10
10
private static _227 .Solution1 solution1 ;
11
11
12
- @ BeforeClass
13
- public static void setup () {
12
+ @ BeforeEach
13
+ public void setup () {
14
14
solution1 = new _227 .Solution1 ();
15
15
}
16
16
You can’t perform that action at this time.
0 commit comments