new Test
parent
da1104718f
commit
e131950044
|
@ -348,6 +348,23 @@ class HitoriTest{
|
|||
assertTrue(Arrays.deepEquals(ergebnis1, HitoriMain2.getErgebnisArray(data, filteredData)));
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
void test23() throws IOException {
|
||||
String[][] ergebnis1 = {
|
||||
{"W", "W", "W", "W"},
|
||||
{"W", "W", "W", "W"},
|
||||
{"W", "W", "W", "W"},
|
||||
{"W", "W", "W", "W"}};
|
||||
String path = "/Hitori_Spielfelder/Hitori4x4_leicht.csv";
|
||||
InputStream inputStream = getClass().getResourceAsStream(path);
|
||||
ArrayList<String> filteredData = HitoriMain2.getSolution(inputStream);
|
||||
InputStream newStream = getClass().getResourceAsStream(path);
|
||||
int rows = 4;
|
||||
String[][] data = HitoriMain2.getData(newStream, rows);
|
||||
assertFalse(Arrays.deepEquals(ergebnis1, HitoriMain2.getErgebnisArray(data, filteredData)));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue