|
|
@ -8,7 +8,6 @@ import org.junit.jupiter.params.provider.MethodSource; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.Arrays; |
|
|
|
import java.util.Collection; |
|
|
|
import java.util.Iterator; |
|
|
|
import java.util.stream.Stream; |
|
|
|
|
|
|
@ -44,7 +43,7 @@ public class GameboardTest { |
|
|
|
void checkGameboardFieldType(String testname, int Pos, int expectedResult) { |
|
|
|
gb.initGameboard(); |
|
|
|
int currentType = gb.board[Pos]; |
|
|
|
assertThat(currentType).describedAs("Field Type").isEqualTo(expectedResult); |
|
|
|
assertThat(currentType).describedAs(testname).isEqualTo(expectedResult); |
|
|
|
} |
|
|
|
|
|
|
|
static Stream<Arguments> FieldStream () { |
|
|
@ -92,9 +91,12 @@ public class GameboardTest { |
|
|
|
" "," "," "," "," "," "," "," "," "," ", |
|
|
|
" "," "," "," "," "," "," "," "," "," ", |
|
|
|
" "," "," "," "," "," "," "," "," "," ", |
|
|
|
" "," "," "," "," "," ","\u001b[31;1m1\u001b[0m", "\u001b[31;1m2\u001b[0m","\u001b[31;1m3\u001b[0m","\u001b[31;1m4\u001b[0m", |
|
|
|
"\u001b[34;1m1\u001b[0m","\u001b[34;1m2\u001b[0m","\u001b[34;1m3\u001b[0m","\u001b[34;1m4\u001b[0m","\u001b[33;1m1\u001b[0m","\u001b[33;1m2\u001b[0m","\u001b[33;1m3\u001b[0m","\u001b[33;1m4\u001b[0m","\u001b[32;1m1\u001b[0m","\u001b[32;1m2\u001b[0m", |
|
|
|
"\u001b[32;1m3\u001b[0m","\u001b[32;1m4\u001b[0m"} |
|
|
|
" "," "," "," "," "," ","\u001b[31;1m1\u001b[0m", |
|
|
|
"\u001b[31;1m2\u001b[0m","\u001b[31;1m3\u001b[0m","\u001b[31;1m4\u001b[0m", |
|
|
|
"\u001b[34;1m1\u001b[0m","\u001b[34;1m2\u001b[0m","\u001b[34;1m3\u001b[0m", |
|
|
|
"\u001b[34;1m4\u001b[0m","\u001b[33;1m1\u001b[0m","\u001b[33;1m2\u001b[0m", |
|
|
|
"\u001b[33;1m3\u001b[0m","\u001b[33;1m4\u001b[0m","\u001b[32;1m1\u001b[0m", |
|
|
|
"\u001b[32;1m2\u001b[0m", "\u001b[32;1m3\u001b[0m","\u001b[32;1m4\u001b[0m"} |
|
|
|
), |
|
|
|
Arguments.of( |
|
|
|
"Figures on Board", |
|
|
@ -117,9 +119,10 @@ public class GameboardTest { |
|
|
|
" "," "," "," ", |
|
|
|
" "," "," "," ", |
|
|
|
" "," "," "," ", |
|
|
|
"\u001b[34;1m1\u001b[0m","\u001b[34;1m2\u001b[0m","\u001b[34;1m3\u001b[0m","\u001b[34;1m4\u001b[0m", |
|
|
|
" "," "," ","\u001b[33;1m4\u001b[0m", |
|
|
|
"\u001b[32;1m1\u001b[0m","\u001b[32;1m2\u001b[0m","\u001b[32;1m3\u001b[0m","\u001b[32;1m4\u001b[0m"} |
|
|
|
"\u001b[34;1m1\u001b[0m","\u001b[34;1m2\u001b[0m","\u001b[34;1m3\u001b[0m", |
|
|
|
"\u001b[34;1m4\u001b[0m", " "," "," ","\u001b[33;1m4\u001b[0m", |
|
|
|
"\u001b[32;1m1\u001b[0m","\u001b[32;1m2\u001b[0m","\u001b[32;1m3\u001b[0m", |
|
|
|
"\u001b[32;1m4\u001b[0m"} |
|
|
|
) |
|
|
|
); |
|
|
|
} |
|
|
|