Skip to content

Commit

Permalink
Minor test refactoring NilFoundation#31
Browse files Browse the repository at this point in the history
  • Loading branch information
Zerg1996 committed Jul 30, 2022
1 parent e2769d6 commit 85f634d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion test/test.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ template <class E>
void report_unexpected_exception(const E& e, int severity, const char* file, int line, const char* function)
{
report_where(file, line, function) << " Unexpected exception of type " << typeid(e).name() << std::endl;
BOOST_LIGHTWEIGHT_TEST_OSTREAM << "Errot message was: " << e.what() << std::endl;
BOOST_LIGHTWEIGHT_TEST_OSTREAM << "Error message was: " << e.what() << std::endl;
BOOST_MP_REPORT_SEVERITY(severity);
}

Expand Down
4 changes: 0 additions & 4 deletions test/test_modular_adaptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@ BOOST_DATA_TEST_CASE(base_opeartions, numbers_size * (boost::unit_test::data::ma
std::string b_string = big_numbers_b.substr(0, num);
std::string mod_string = exp;

std::cout << a_string << std::endl;
std::cout << b_string << std::endl;
std::cout << mod_string << std::endl;

standart_number a_s(a_string), b_s(b_string), mod_s(mod_string), result_s(0);

params_number mod(mod_s);
Expand Down
4 changes: 2 additions & 2 deletions test/test_native_integer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ void test() {
I i(0);

#ifndef BOOST_NO_EXCEPTIONS
BOOST_CHECK_THROW(lsb(i), std::range_error);
BOOST_CHECK_THROW(lsb(i), std::domain_error);
#endif
BOOST_CHECK(bit_test(bit_set(i, 0), 0));
BOOST_CHECK_EQUAL(bit_set(i, 0), 1);
Expand All @@ -47,7 +47,7 @@ void test() {
#ifndef BOOST_NO_EXCEPTIONS
if (std::numeric_limits<I>::is_signed) {
i = static_cast<I>(-1);
BOOST_CHECK_THROW(lsb(i), std::range_error);
BOOST_CHECK_THROW(lsb(i), std::domain_error);
}
#endif
H mx = (std::numeric_limits<H>::max)();
Expand Down

0 comments on commit 85f634d

Please sign in to comment.