mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-27 03:27:56 +01:00
Add more asserts for toSectionRelativeCoordinate
This commit is contained in:
parent
fc1ee640b2
commit
7e5cd64f8d
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user