From a02eacd8bc5a2fa2f36becd25fe60d8d4e59d2b4 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Thu, 13 Apr 2017 11:28:19 +0200 Subject: [PATCH] Fixed unit test --- tests/TestArrange.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TestArrange.py b/tests/TestArrange.py index 764da3cb65..d69747383d 100755 --- a/tests/TestArrange.py +++ b/tests/TestArrange.py @@ -82,7 +82,7 @@ def test_checkShape(): assert points3 > points -## After placing an object on a location that location should give more penalty points +## Check that placing an object on occupied place returns None. def test_checkShape_place(): ar = Arrange(30, 30, 15, 15) ar.centerFirst() @@ -92,7 +92,7 @@ def test_checkShape_place(): ar.place(3, 6, shape_arr) points2 = ar.checkShape(3, 6, shape_arr) - assert points2 > points + assert points2 is None ## Test the whole sequence