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

Method RunTest

Source/URLabEditor/Private/Tests/MjXmlUtilsTests.cpp:36–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 EAutomationTestFlags::EditorContext | EAutomationTestFlags::ProductFilter)
35
36bool FMjXmlUtilsParseVectorNormal::RunTest(const FString& Parameters)
37{
38 FVector V = MjXmlUtils::ParseVector(TEXT("1.5 -2.0 3.0"));
39 TestTrue(TEXT("X ~= 1.5"), FMath::Abs(V.X - 1.5) < 1e-4);
40 TestTrue(TEXT("Y ~= -2.0"), FMath::Abs(V.Y - (-2.0)) < 1e-4);
41 TestTrue(TEXT("Z ~= 3.0"), FMath::Abs(V.Z - 3.0) < 1e-4);
42 return true;
43}
44
45// ============================================================================
46// URLab.XmlUtils.ParseVector_Empty

Callers

nothing calls this directly

Calls 1

IsEmptyMethod · 0.80

Tested by

no test coverage detected