Skip to content

Commit 09ee984

Browse files
committed
see 09/09 log
1 parent 0e86d33 commit 09ee984

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

utilcode/src/test/java/com/blankj/utilcode/util/ConvertUtilsTest.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,11 @@ public void bytes2Bits_bits2Bytes() throws Exception {
121121
@Test
122122
public void inputStream2Bytes_bytes2InputStream() throws Exception {
123123
String string = "this is test string";
124-
Assert.assertEquals(
125-
string.getBytes("UTF-8"),
126-
ConvertUtils.inputStream2Bytes(ConvertUtils.bytes2InputStream(string.getBytes("UTF-8")))
124+
Assert.assertTrue(
125+
Arrays.equals(
126+
string.getBytes("UTF-8"),
127+
ConvertUtils.inputStream2Bytes(ConvertUtils.bytes2InputStream(string.getBytes("UTF-8")))
128+
)
127129
);
128130
}
129131

0 commit comments

Comments
 (0)