-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTest0209.java
More file actions
34 lines (27 loc) · 807 Bytes
/
Test0209.java
File metadata and controls
34 lines (27 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package leetcode;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author xiangdotzhaoAtwoqutechcommacom
* @date 2019/12/15
*/
class Test0209 {
private Solution0209 solution = new Solution0209();
@Test
@DisplayName("209 Minimum Size Subarray Sum")
void minSubArrayLen() {
int expected = 2;
int[] nums = {2, 3, 1, 2, 4, 3};
int s = 7;
assertEquals(expected, solution.minSubArrayLen(s, nums));
}
@Test
@DisplayName("209 Minimum Size Subarray Sum")
void minSubArrayLenPerf() {
int expected = 2;
int[] nums = {2, 3, 1, 2, 4, 3};
int s = 7;
assertEquals(expected, solution.minSubArrayLenPerf(s, nums));
}
}