Skip to content

Commit

Permalink
suppress too large output
Browse files Browse the repository at this point in the history
  • Loading branch information
upsj committed Feb 26, 2020
1 parent 246d4c5 commit 3d04677
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions core/test/utils/assertions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,14 @@ ::testing::AssertionResult matrices_near_impl(
<< second_expression << " is " << err << "\n"
<< "\twhich is larger than " << tolerance_expression
<< " (which is " << tolerance << ")\n";
fail << first_expression << " is:\n";
detail::print_matrix(fail, first);
fail << second_expression << " is:\n";
detail::print_matrix(fail, second);
fail << "component-wise relative error is:\n";
detail::print_componentwise_error(fail, first, second);
if (num_rows * num_cols <= 1000) {
fail << first_expression << " is:\n";
detail::print_matrix(fail, first);
fail << second_expression << " is:\n";
detail::print_matrix(fail, second);
fail << "component-wise relative error is:\n";
detail::print_componentwise_error(fail, first, second);
}
return fail;
}
}
Expand Down

0 comments on commit 3d04677

Please sign in to comment.