Skip to content

Commit 75933ff

Browse files
committed
Allow variable wiggle factor in adjust_tolerance
1 parent 00e7b48 commit 75933ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testing_utils.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ Catch::Generators::GeneratorWrapper<std::tuple<T1, T2, T3>> xsf_test_cases(
132132
}
133133

134134
template <typename T>
135-
T adjust_tolerance(T tol) {
135+
T adjust_tolerance(T tol, T factor = 4) {
136136
// Add some wiggle room to tolerance from table.
137-
return 4 * std::max(std::numeric_limits<T>::epsilon(), tol);
137+
return factor * std::max(std::numeric_limits<T>::epsilon(), tol);
138138
}
139139

140140
std::string get_platform_str() {

0 commit comments

Comments
 (0)