void ArbreRenduTest::testCreerNoeud() { NoeudAbstrait * noeud = arbre_->creerNoeud(ArbreRenduINF2990::NOM_BUTOIRCIRCULAIRE); noeud->assignerPositionRelative(glm::dvec3(5, 10, 15)); noeud->assignerAgrandissement(glm::dvec3(1.7, 1.7, 1.7)); noeud->assignerRotation(20); NoeudAbstrait * zone = arbre_->chercher("zonedejeu"); zone->ajouter(noeud); NoeudAbstrait * noeud2 = zone->chercher(zone->obtenirNombreEnfants() - 1); CPPUNIT_ASSERT(noeud2 != nullptr); CPPUNIT_ASSERT(noeud2->obtenirRotation() == 20); glm::dvec3 position = noeud2->obtenirPositionRelative(); CPPUNIT_ASSERT(position.x == 5); CPPUNIT_ASSERT(position.y == 10); CPPUNIT_ASSERT(position.z == 15); CPPUNIT_ASSERT(noeud2->obtenirAgrandissement().x == 1.7); }