aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/de
diff options
context:
space:
mode:
authorKevin <92656833+kevinthegreat1@users.noreply.github.com>2023-11-25 18:00:49 -0800
committerGitHub <noreply@github.com>2023-11-25 21:00:49 -0500
commit31eee869193bb0183c79bc6fd1fd68add5bf1e53 (patch)
tree61571d7de22d83b6c65406ac143524cc1d0971ec /src/test/java/de
parentc8630ba14e7036ed09990f725ec6f927f0b1afc9 (diff)
downloadSkyblocker-31eee869193bb0183c79bc6fd1fd68add5bf1e53.tar.gz
Skyblocker-31eee869193bb0183c79bc6fd1fd68add5bf1e53.tar.bz2
Skyblocker-31eee869193bb0183c79bc6fd1fd68add5bf1e53.zip
Update MythologicalRitual (#427)
Diffstat (limited to 'src/test/java/de')
-rw-r--r--src/test/java/de/hysky/skyblocker/skyblock/waypoint/MythologicalRitualTest.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/java/de/hysky/skyblocker/skyblock/waypoint/MythologicalRitualTest.java b/src/test/java/de/hysky/skyblocker/skyblock/waypoint/MythologicalRitualTest.java
new file mode 100644
index 00000000..0938fc27
--- /dev/null
+++ b/src/test/java/de/hysky/skyblocker/skyblock/waypoint/MythologicalRitualTest.java
@@ -0,0 +1,18 @@
+package de.hysky.skyblocker.skyblock.waypoint;
+
+import net.minecraft.util.math.Vec3d;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
+
+public class MythologicalRitualTest {
+ @Test
+ void testFillLine() {
+ Vec3d[] line = new Vec3d[21];
+ Vec3d start = new Vec3d(0, 0, 0);
+ Vec3d direction = new Vec3d(1, 0, 0);
+ MythologicalRitual.fillLine(line, start, direction);
+ for (int i = 0; i < line.length; i++) {
+ Assertions.assertEquals(new Vec3d(i - 10, 0, 0), line[i]);
+ }
+ }
+}