TestEqFloat (open)

Test if a float value matches the expected value, with a specific maximum deviation

Syntax

LOADLIB "mod::system/lib/testframework.whlib";

MACRO TestEqFloat(FLOAT expected, FLOAT actual, FLOAT max_deviation, STRING annotation)

Parameters

FLOAT expected

Expected value

FLOAT actual

Gotten value

FLOAT max_deviation

Maximum allowed deviation from the expected value

STRING annotation

Message to display when the test fails