Clean code and testing tweak
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user