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

Function TEST

tests/src/Base/CoordinateSystem.cpp:7–14  ·  view source on GitHub ↗

NOLINTBEGIN

Source from the content-addressed store, hash-verified

5
6// NOLINTBEGIN
7TEST(CoordinateSystem, TestDefault)
8{
9 Base::CoordinateSystem cs;
10 EXPECT_EQ(cs.getPosition(), Base::Vector3d(0, 0, 0));
11 EXPECT_EQ(cs.getXDirection(), Base::Vector3d(1, 0, 0));
12 EXPECT_EQ(cs.getYDirection(), Base::Vector3d(0, 1, 0));
13 EXPECT_EQ(cs.getZDirection(), Base::Vector3d(0, 0, 1));
14}
15
16TEST(CoordinateSystem, TestSetAxisFailure)
17{

Callers

nothing calls this directly

Calls 15

Vector3dClass · 0.85
NormalizeMethod · 0.80
RotationClass · 0.50
getPositionMethod · 0.45
getXDirectionMethod · 0.45
getYDirectionMethod · 0.45
getZDirectionMethod · 0.45
setAxesMethod · 0.45
setBaseMethod · 0.45
setDirectionMethod · 0.45
setXDirectionMethod · 0.45
setYDirectionMethod · 0.45

Tested by

no test coverage detected