Better test case for the binary tree class.
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 9 Feb 2018 18:23:14 +0000 (19:23 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 9 Feb 2018 18:23:14 +0000 (19:23 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Arbres/ArbreBinaire.java

index a99b47a201e1b2f04662394ac780b7eb9dfaa6b8..8f79d28c48379d5f5aafab9d322f14b8a166b713 100644 (file)
@@ -185,6 +185,16 @@ public class ArbreBinaire {
 
         Btree.afficher();
         Btree.afficher_arbre();
+
+        Btree.inserer(2);
+        Btree.inserer(7);
+        Btree.inserer(3);
+        Btree.inserer(9);
+        Btree.inserer(11);
+        Btree.inserer(10);
+
+        Btree.afficher();
+        Btree.afficher_arbre();
     }
 
 }