MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / TEST

Function TEST

tests/src/Base/Quantity.cpp:13–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12
13TEST(BaseQuantity, TestValid)
14{
15 const Quantity q1 {1.0, Unit::Length};
16 Quantity q2 {1.0, Unit::Area};
17 q2.setInvalid();
18
19 EXPECT_EQ(q1.isValid(), true);
20 EXPECT_EQ(q2.isValid(), false);
21}
22
23TEST(BaseQuantity, TestParse)
24{

Callers

nothing calls this directly

Calls 7

isDimensionlessMethod · 0.80
parseFunction · 0.50
QuantityFunction · 0.50
setInvalidMethod · 0.45
isValidMethod · 0.45
powMethod · 0.45
getUnitMethod · 0.45

Tested by

no test coverage detected