code-coverage-Emilia #24
@@ -12,7 +12,7 @@ public class World {
|
|||||||
private int height;
|
private int height;
|
||||||
|
|
||||||
public World(int x, int y) {
|
public World(int x, int y) {
|
||||||
this.map = new String[(x * 2) + 1][y + 2];
|
this.map = new String[x][y];
|
||||||
addWorldToMap();
|
addWorldToMap();
|
||||||
width = x;
|
width = x;
|
||||||
height = y;
|
height = y;
|
||||||
|
|||||||
@@ -22,15 +22,8 @@ class WorldTest {
|
|||||||
}
|
}
|
||||||
@Test
|
@Test
|
||||||
void worldCreationTest() {
|
void worldCreationTest() {
|
||||||
// World test = new World(5, 5);
|
World test = new World(5, 5);
|
||||||
// String[][] mapTest = test.getMap();
|
assertEquals(25, test.getMap().length * test.getMap()[0].length);
|
||||||
// int counter = 0;
|
|
||||||
// for (int i = 0; i < mapTest.length; i++) {
|
|
||||||
// for (int j = 0; j < mapTest[i].length; j++) {
|
|
||||||
// counter += 1;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// assertEquals(counter, 5 * 5);
|
|
||||||
}
|
}
|
||||||
@Test
|
@Test
|
||||||
void mapCreationTest() {
|
void mapCreationTest() {
|
||||||
|
|||||||
Reference in New Issue
Block a user