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

Function TEST_F

tests/src/Base/Quantity.cpp:211–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209};
210
211TEST_F(BaseQuantityLoc, psi_parse_spaced)
212{
213 const auto qParsed = Quantity::parse("1 psi");
214 EXPECT_EQ(qParsed.getValue(), 6.8947572931683609);
215}
216
217TEST_F(BaseQuantityLoc, psi_parse_no_space)
218{

Callers

nothing calls this directly

Calls 10

getSafeUserStringMethod · 0.80
getTypeStringMethod · 0.80
parseFunction · 0.50
getValueMethod · 0.45
getFormatMethod · 0.45
setPrecisionMethod · 0.45
setFormatMethod · 0.45
getUserStringMethod · 0.45
getUnitMethod · 0.45
getValueAsMethod · 0.45

Tested by

no test coverage detected