From 7e5cd64f8d43ff2daf58566c0ce4c7fbd5f93539 Mon Sep 17 00:00:00 2001 From: themode Date: Wed, 22 Dec 2021 22:39:18 +0100 Subject: [PATCH] Add more asserts for toSectionRelativeCoordinate --- src/test/java/coordinate/CoordinateTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/java/coordinate/CoordinateTest.java b/src/test/java/coordinate/CoordinateTest.java index dd33fe053..3bc65eba2 100644 --- a/src/test/java/coordinate/CoordinateTest.java +++ b/src/test/java/coordinate/CoordinateTest.java @@ -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)); } }