repositories
/
TP_POO.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b026092
)
TP2: Fix one test case.
author
Jérôme Benoit
<jerome.benoit@piment-noir.org>
Thu, 15 Feb 2018 13:09:21 +0000
(14:09 +0100)
committer
Jérôme Benoit
<jerome.benoit@piment-noir.org>
Thu, 15 Feb 2018 13:09:21 +0000
(14:09 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
TP2/Main.java
patch
|
blob
|
blame
|
history
diff --git
a/TP2/Main.java
b/TP2/Main.java
index 64a54e79985048dbd29e4c503318efe10e2aa089..e8a3ca51974038318a90820642b0c03014753bf1 100644
(file)
--- 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();
}