MCPcopy Create free account
hub / github.com/URLab-Sim/UnrealRoboticsLab / RunTest

Method RunTest

Source/URLabEditor/Private/Tests/MjTransformTests.cpp:38–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 EAutomationTestFlags::EditorContext | EAutomationTestFlags::ProductFilter)
37
38bool FMjTransformPosScale::RunTest(const FString& Parameters)
39{
40 double mjPos[3] = {1.0, 2.0, 3.0};
41 FVector uePos = MjUtils::MjToUEPosition(mjPos);
42
43 TestEqual(TEXT("UE X should be 100 cm"), uePos.X, 100.0);
44 TestEqual(TEXT("UE Y should be -200 cm (Y negated)"), uePos.Y, -200.0);
45 TestEqual(TEXT("UE Z should be 300 cm"), uePos.Z, 300.0);
46 return true;
47}
48
49// ============================================================================
50// URLab.Transform.YNegation

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected