Robot

mail@pastecode.io avatar
unknown
java
3 years ago
942 B
1
Indexable
Never
package com.alt2.Tests;

import com.alt2.Robot;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertEquals;

public class RobotTest {

    Robot robot = new Robot(0,0,90);


    @Test
    @DisplayName("Place in robot")
    void place() {

    }

    @Test
    @DisplayName("Place in robot")
    void move() {
    }

    @Test
    @DisplayName("Print robot")
    void print() {

        assertEquals("0,0,NORTH",robot.print());
    }

    @Test
    @DisplayName("Rotate robot")
    void rotate() {
        robot.rotate(90);
        assertEquals("EAST",robot.getDirection());
        robot.rotate(90);
        assertEquals("SOUTH",robot.getDirection());
        robot.rotate(90);
        assertEquals("WEST",robot.getDirection());

    }
}