Skip to content

Commit 8b2f6a9

Browse files
committed
Replace assertTrue with assertEquals in WriteChunkRegionTest
1 parent a668535 commit 8b2f6a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/test/java/org/glavo/nbt/io/WriteChunkRegionTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public void testWriteRegion(String path) throws IOException {
4848

4949
byte[] bytes = writeToByteArray(expected);
5050

51-
assertTrue((bytes.length % ChunkUtils.SECTOR_BYTES) == 0);
51+
assertEquals(0, (bytes.length % ChunkUtils.SECTOR_BYTES));
5252

5353
ChunkRegion actual = NBTCodec.of().readRegion(new ByteArrayInputStream(bytes));
5454
assertEquals(expected, actual);

0 commit comments

Comments
 (0)