Make the Wilson test actually test something.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Manuel Friedli 2024-12-18 01:06:33 +01:00
parent 3bf438ffb9
commit 9599be21b3
Signed by: manuel
GPG key ID: 41D08ABA75634DA1

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("""
""");
}
}