Merge pull request #239 from Flamefire/test-duplication

Remove superflous test duplication
This commit is contained in:
Matt Borland
2025-01-03 13:19:10 -05:00
committed by GitHub

View File

@@ -12,7 +12,6 @@
#include <cstring>
#include <cerrno>
template <typename T>
void test_integer()
{
std::uint64_t significand {};
@@ -84,8 +83,7 @@ void test_integer()
BOOST_TEST(r6.ec == std::errc::result_out_of_range);
}
template <typename T>
void test_scientifc()
void test_scientific()
{
std::uint64_t significand {};
std::int64_t exponent {};
@@ -146,7 +144,6 @@ void test_scientifc()
}
template <typename T>
void test_hex_integer()
{
std::uint64_t significand {};
@@ -175,7 +172,6 @@ void test_hex_integer()
BOOST_TEST(r3.ec == std::errc::invalid_argument);
}
template <typename T>
void test_hex_scientific()
{
std::uint64_t significand {};
@@ -236,21 +232,10 @@ void test_zeroes()
int main()
{
test_integer<float>();
test_integer<double>();
test_integer<long double>();
test_scientifc<float>();
test_scientifc<double>();
test_scientifc<long double>();
test_hex_integer<float>();
test_hex_integer<double>();
test_hex_integer<long double>();
test_hex_scientific<float>();
test_hex_scientific<double>();
test_hex_scientific<long double>();
test_integer();
test_scientific();
test_hex_integer();
test_hex_scientific();
test_zeroes();
return boost::report_errors();