Skip to content

Commit bed71c5

Browse files
committed
Test addition in both directions
1 parent c43a171 commit bed71c5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/test_downward_rounding.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,15 @@ template <typename T>
2727
void test_add(const char* lhs, const char* rhs, const char* result)
2828
{
2929
std::cerr << std::setprecision(std::numeric_limits<T>::max_digits10);
30-
return test<T>(lhs, rhs, result, std::plus<>());
30+
test<T>(lhs, rhs, result, std::plus<>());
31+
test<T>(rhs, lhs, result, std::plus<>());
3132
}
3233

3334
template <typename T>
3435
void test_sub(const char* lhs, const char* rhs, const char* result)
3536
{
3637
std::cerr << std::setprecision(std::numeric_limits<T>::max_digits10);
37-
return test<T>(lhs, rhs, result, std::minus<>());
38+
test<T>(lhs, rhs, result, std::minus<>());
3839
}
3940

4041
int main()

0 commit comments

Comments
 (0)