Clean code and testing tweak

This commit is contained in:
bgbsww
2024-02-07 11:43:40 -05:00
parent 1c77ebdeb0
commit 7b330a523e
4 changed files with 44 additions and 17 deletions

View File

@@ -199,3 +199,19 @@ TEST_F(FeaturePartCommonTest, testHistory)
EXPECT_EQ(hist[0].shapeMap, compare2);
EXPECT_EQ(hist[1].shapeMap, compare1);
}
TEST_F(FeaturePartCommonTest, testMapping)
{
// Arrange
_boxes[0]->Shape.getShape().Tag = 1L;
_boxes[1]->Shape.getShape().Tag = 2L;
_common->Base.setValue(_boxes[0]);
_common->Tool.setValue(_boxes[1]);
Part::TopoShape ts1 = _common->Shape.getShape();
#ifndef FC_USE_TNP_FIX
EXPECT_EQ(ts1.getElementMap().size(), 0);
#else
EXPECT_EQ(ts1.getElementMap().size(), 26); // Value and code TBD
#endif
}