feature/wilson-algorithm #10

Merged
manuel merged 6 commits from feature/wilson-algorithm into master 2024-12-24 02:56:26 +01:00
Showing only changes of commit 9599be21b3 - Show all commits

View file

@ -4,12 +4,41 @@ import ch.fritteli.maze.generator.model.Maze;
import ch.fritteli.maze.generator.renderer.text.TextRenderer;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
class WilsonTest {
@Test
void foo() {
final Maze maze = new Maze(50, 10, 0);
// arrange
final Maze maze = new Maze(10, 10, 0);
final Wilson wilson = new Wilson(maze);
// act
wilson.run();
System.out.println(TextRenderer.newInstance().render(maze));
// assert
final String textRepresentation = TextRenderer.newInstance().render(maze);
assertThat(textRepresentation).isEqualTo("""
""");
}
}