Add more asserts for toSectionRelativeCoordinate

This commit is contained in:
themode 2021-12-22 22:39:18 +01:00 committed by TheMode
parent fc1ee640b2
commit 7e5cd64f8d

View File

@ -79,8 +79,14 @@ public class CoordinateTest {
@Test
public void toSectionRelativeCoordinate() {
assertEquals(8, ChunkUtils.toSectionRelativeCoordinate(-40));
assertEquals(12, ChunkUtils.toSectionRelativeCoordinate(-20));
assertEquals(0, ChunkUtils.toSectionRelativeCoordinate(0));
assertEquals(5, ChunkUtils.toSectionRelativeCoordinate(5));
assertEquals(15, ChunkUtils.toSectionRelativeCoordinate(15));
assertEquals(0, ChunkUtils.toSectionRelativeCoordinate(16));
assertEquals(4, ChunkUtils.toSectionRelativeCoordinate(20));
assertEquals(0, ChunkUtils.toSectionRelativeCoordinate(32));
assertEquals(1, ChunkUtils.toSectionRelativeCoordinate(33));
}
}