App/Toponaming: import SubObjectT dependencies for SubShapeBinder

* Added test for SubObjectT::hasSubObject()
 * Added test for SubObjectT::hasSubElement()
 * Added test for SubObjectT::normalize()
 * Added test for SubObjectT::normalized()

Signed-off-by: CalligaroV <vincenzo.calligaro@gmail.com>
This commit is contained in:
CalligaroV
2024-04-09 14:23:15 +02:00
committed by Chris Hennes
parent 38d9c936eb
commit 2721918d10
4 changed files with 430 additions and 5 deletions

View File

@@ -49,17 +49,17 @@ TEST_F(DocumentObjectTest, getSubObjectList)
auto boxName {_doc->addObject("Part::Box")->getNameInDocument()};
// The name of a Part::Cylinder added to the document
auto cylName {_doc->addObject("Part::Cylinder")->getNameInDocument()};
// The an App::Part added to the document
// An App::Part object added to the document
auto part {_doc->addObject("App::Part")};
// The name of the App::Part added to the document
auto partName {part->getNameInDocument()};
// The name of the object used as argument for the calls of DocumentObject::getSubObjectList()
auto subName {std::string()};
// a vector of int used as argument for the call of DocumentObject::getSubObjectList() with
// A vector of int used as argument for the call of DocumentObject::getSubObjectList() with
// argument flatten not set (or set to false)
auto sizesNoFlatten {std::vector<int>()};
// a vector of int used as argument for the call of DocumentObject::getSubObjectList() with
// A vector of int used as argument for the call of DocumentObject::getSubObjectList() with
// argument flatten set to true
auto sizesFlatten {std::vector<int>()};
// An helper string used to compose the argument of some calls of