From 9087d986c529e4aead6f5a13e65b58293022cc7d Mon Sep 17 00:00:00 2001 From: Julius Dewender Date: Thu, 14 Jan 2021 21:23:59 +0100 Subject: [PATCH] figure movement: valid step (width: 1) --- fh.fd.ci.client/src/test/java/de/fd/fh/FigureTest.java | 7 +++++++ 1 file changed, 7 insertions(+) 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 56d8ae9..36f6c10 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 @@ -33,4 +33,11 @@ class FigureTest Figure f = new Figure(); assertFalse(f.moveAllowed(48,48, new int[Figure.fieldSize])); } + + @Test + void checkMoveWithValidDestination() + { + Figure f = new Figure(); + assertTrue(f.moveAllowed(48,40, new int[Figure.fieldSize])); + } } \ No newline at end of file