File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 35
35
#include < regex>
36
36
#include < type_traits>
37
37
38
+ /* *
39
+ * ASSERT_EQUAL is a general utility for comparing two values and throwing
40
+ * an Exception with a caller defined message when values are not equivalent.
41
+ * Note, ASSERT_EQUAL is typically used to verify that some found value matches
42
+ * a given expected or standard value. If the expected value is NaN,
43
+ * ASSERT_EQUAL will NOT throw if the found value is also NaN. This is
44
+ * particularly helpful for comparing motion capture data where missing data
45
+ * are denoted by NaN values. If NaNs are not acceptable for your test, then
46
+ * the expected value should not be NaN. In the case of floating point values
47
+ * (or containers of floating points) a tolerance of the same value type is
48
+ * required.
49
+ */
38
50
template <typename T,
39
51
typename std::enable_if<std::is_floating_point<T>::value>::type* = nullptr >
40
52
void ASSERT_EQUAL (T expected,
You can’t perform that action at this time.
0 commit comments