From 60945b41d58a50a7f4315fdec128bff5c50e914f Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 15 Feb 2018 14:09:21 +0100 Subject: [PATCH 1/1] TP2: Fix one test case. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- TP2/Main.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/TP2/Main.java b/TP2/Main.java index 64a54e7..e8a3ca5 100644 --- a/TP2/Main.java +++ b/TP2/Main.java @@ -11,6 +11,9 @@ class Main { Piletransformations trans = new Piletransformations(10); boolean rt = trans.empiler(p4); + if (!rt) { + System.out.println("Echec empilation"); + } segment.dessiner(trans); cercle.dessiner(trans); @@ -55,8 +58,9 @@ class Main { image2.dessiner(transformations); Point point2 = new Point(0.5, 2.5); image1.deplacer(point2); - image2.ajouter(image1); - image2.dessiner(transformations); + image3.ajouter(image1); + image3.ajouter(image2); + image3.dessiner(transformations); transformations.depiler(); } -- 2.34.1