aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/de/hysky/skyblocker/skyblock/waypoint/MythologicalRitualTest.java
blob: 0938fc2710f1e7c5c5c38d56f4855f1136b5b590 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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]);
        }
    }
}