Searched refs:tolerance (Results 1 – 2 of 2) sorted by relevance
| /TaskScheduler/ThirdParty/UnitTest++/UnitTest++/ |
| H A D | Checks.h | 39 bool AreClose(Expected const& expected, Actual const& actual, Tolerance const& tolerance) in AreClose() argument 41 return (actual >= (expected - tolerance)) && (actual <= (expected + tolerance)); in AreClose() 48 if (!AreClose(expected, actual, tolerance)) in CheckClose() 51 stream << "Expected " << expected << " +/- " << tolerance << " but was " << actual; in CheckClose() 91 equal &= AreClose(expected[i], actual[i], tolerance); in ArrayAreClose() 97 int const count, Tolerance const& tolerance, TestDetails const& details) in CheckArrayClose() argument 99 bool equal = ArrayAreClose(expected, actual, count, tolerance); in CheckArrayClose() 108 stream << "] +/- " << tolerance << " but was [ "; in CheckArrayClose() 120 … int const rows, int const columns, Tolerance const& tolerance, TestDetails const& details) in CheckArray2DClose() argument 124 equal &= ArrayAreClose(expected[i], actual[i], columns, tolerance); in CheckArray2DClose() [all …]
|
| H A D | CheckMacros.h | 78 #define CHECK_CLOSE(expected, actual, tolerance) \ argument 82 …UnitTest::CheckClose(*UnitTest::CurrentTest::Results(), expected, actual, tolerance, UnitTest::Tes… 118 #define CHECK_ARRAY_CLOSE(expected, actual, count, tolerance) \ argument 122 …kArrayClose(*UnitTest::CurrentTest::Results(), expected, actual, count, tolerance, UnitTest::TestD… 138 #define CHECK_ARRAY2D_CLOSE(expected, actual, rows, columns, tolerance) \ argument 142 …ose(*UnitTest::CurrentTest::Results(), expected, actual, rows, columns, tolerance, UnitTest::TestD…
|