Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 1e0fc52

Browse files
committed
调整junit依赖
1 parent 8406313 commit 1e0fc52

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

main/test/array/LC_26_LC26_RemoveDuplicatesFromSortedArrayTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
import org.junit.Test;
44

5-
import static org.hamcrest.Matchers.is;
5+
import static org.hamcrest.core.Is.is;
66
import static org.junit.Assert.assertThat;
77

8+
89
/**
910
* @author alis
1011
* @date 2019/10/20 3:00 PM

main/test/bit/LC_231_IsPowerOfTwoTest.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
import org.junit.Test;
44

5-
import static org.assertj.core.api.Assertions.assertThat;
5+
import static org.junit.Assert.assertTrue;
6+
67

78
/**
89
* @author alis
@@ -14,8 +15,8 @@ public class LC_231_IsPowerOfTwoTest {
1415

1516
@Test
1617
public void TestIsPowerOfTwo() {
17-
assertThat(ipt.isPowerOfTwo(1));
18-
assertThat(ipt.isPowerOfTwo(16));
19-
assertThat(!ipt.isPowerOfTwo(218));
18+
assertTrue(ipt.isPowerOfTwo(1));
19+
assertTrue(ipt.isPowerOfTwo(16));
20+
assertTrue(!ipt.isPowerOfTwo(218));
2021
}
2122
}

main/test/tree/LC_144_PreOrderTraversalTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import java.util.Arrays;
66
import java.util.List;
77

8-
import static org.hamcrest.Matchers.is;
8+
import static org.hamcrest.core.Is.is;
99
import static org.junit.Assert.assertThat;
1010

1111
/**

0 commit comments

Comments
 (0)