From 5cd665a0cf4acb4e8e7c7b29e200ceb0081f4747 Mon Sep 17 00:00:00 2001 From: Julius Dewender Date: Thu, 14 Jan 2021 21:04:20 +0100 Subject: [PATCH] figure movement field check (bigger than expected) --- fh.fd.ci.client/src/test/java/de/fd/fh/FigureTest.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fh.fd.ci.client/src/test/java/de/fd/fh/FigureTest.java b/fh.fd.ci.client/src/test/java/de/fd/fh/FigureTest.java index 0494e0a..476968a 100644 --- a/fh.fd.ci.client/src/test/java/de/fd/fh/FigureTest.java +++ b/fh.fd.ci.client/src/test/java/de/fd/fh/FigureTest.java @@ -13,5 +13,10 @@ class FigureTest assertFalse(f.moveAllowed(0,0, new int[0])); } - + @Test + void checkMoveWithInvalidFieldBigger() // Feldgröße sollte 8*8 betragen + { + Figure f = new Figure(); + assertFalse(f.moveAllowed(0,0, new int[8*9])); + } } \ No newline at end of file