-
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cb4c7e2
commit b21df65
Showing
3 changed files
with
54 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/test/java/de/hysky/skyblocker/skyblock/waypoint/MythologicalRitualTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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]); | ||
} | ||
} | ||
} |