Part: Toposhape: fix regressions due to changes in getElementTypeAndIndex (#26596)

* Part: Toposhape: fix regressions due to changes in getElementTypeAndIndex

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update TopoShape.cpp

* Update TopoShape.cpp

* Update TopoShape.cpp

* Update TopoShape.h

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
PaddleStroke
2026-01-02 19:37:09 +01:00
committed by GitHub
parent 8ed70d6fac
commit 392f661099
3 changed files with 6 additions and 6 deletions

View File

@@ -87,7 +87,7 @@ TEST_F(TopoShapeTest, TestElementTypeWithHash)
TEST_F(TopoShapeTest, TestElementTypeWithSubelements)
{
EXPECT_EQ(Part::TopoShape::getElementTypeAndIndex("Part.Body.Pad.Face3"),
std::make_pair(std::string("Face"), 3UL));
std::make_pair(std::string(), 0UL));
}
TEST_F(TopoShapeTest, TestElementTypeNonMatching)