AFunctionalTest::AssertEqual_Float

Assert that two floats are equal within tolerance between two floats.

Unreal Engine C++ API Reference > Developer > FunctionalTesting > AFunctionalTest

References

   
Module FunctionalTesting
Header /Engine/Source/Developer/FunctionalTesting/Classes/FunctionalTest.h
Include #include "FunctionalTest.h"
Source /Engine/Source/Developer/FunctionalTesting/Private/FunctionalTest.cpp
virtual bool AssertEqual_Float
(
    float Actual,
    float Expected,
    const [FString](API\Runtime\Core\Containers\FString) & What,
    float Tolerance,
    const [UObject](API\Runtime\CoreUObject\UObject\UObject) * ContextObject
)

Remarks

Assert that two floats are equal within tolerance between two floats.

Parameters

Name Description
What A name to use in the message if the assert fails (What: expected {Actual} to be Equal To {Expected} within Tolerance for context '')

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library