From: Jérôme Benoit Date: Thu, 15 Feb 2018 13:09:21 +0000 (+0100) Subject: TP2: Fix one test case. X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=60945b41d58a50a7f4315fdec128bff5c50e914f;p=TP_POO.git TP2: Fix one test case. Signed-off-by: Jérôme Benoit --- 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(); }