Skip to content

Commit 0f7067f

Browse files
committed
IntervalListIntersections: reorder test-cases
1 parent 224e76c commit 0f7067f

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed
Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package by.andd3dfx.common;
22

3-
import static by.andd3dfx.common.IntervalListIntersections.intervalIntersection;
43
import static org.assertj.core.api.Assertions.assertThat;
54

65
import org.junit.Test;
@@ -9,14 +8,14 @@ public class IntervalListIntersectionsTest {
98

109
@Test
1110
public void testIntervalIntersection() {
12-
assertThat(intervalIntersection(
11+
assertThat(IntervalListIntersections.intervalIntersection(
12+
new int[][]{{1, 3}, {5, 9}},
13+
new int[][]{}
14+
)).isEqualTo(new int[][]{});
15+
16+
assertThat(IntervalListIntersections.intervalIntersection(
1317
new int[][]{{0, 2}, {5, 10}, {13, 23}, {24, 25}},
1418
new int[][]{{1, 5}, {8, 12}, {15, 24}, {25, 26}}
1519
)).isEqualTo(new int[][]{{1, 2}, {5, 5}, {8, 10}, {15, 23}, {24, 24}, {25, 25}});
16-
17-
assertThat(intervalIntersection(
18-
new int[][]{{1, 3}, {5, 9}},
19-
new int[][]{}))
20-
.isEqualTo(new int[][]{});
2120
}
2221
}

0 commit comments

Comments
 (0)