mirror of
https://github.com/boostorg/multiprecision.git
synced 2026-01-19 04:22:11 +00:00
Remove redundant and thus uncovered lines
This commit is contained in:
@@ -518,9 +518,6 @@ inline void eval_pow(T& result, const T& x, const T& a)
|
||||
case FP_ZERO:
|
||||
switch (fpc_a)
|
||||
{
|
||||
case FP_ZERO:
|
||||
result = si_type(1);
|
||||
break;
|
||||
case FP_NAN:
|
||||
result = a;
|
||||
break;
|
||||
|
||||
@@ -159,6 +159,18 @@ void test_issue722()
|
||||
|
||||
BOOST_CHECK((boost::multiprecision::isnan)(pow_neg_inf_to_the_nan));
|
||||
}
|
||||
|
||||
for (int index = 0; index < 8; ++index)
|
||||
{
|
||||
static_cast<void>(index);
|
||||
|
||||
const T val_x_zero { ::my_zero<T>() * dist(gen) };
|
||||
const T val_a_zero { ::my_zero<T>() * dist(gen) };
|
||||
|
||||
const T pow_zero_to_the_zero = pow(val_x_zero, val_a_zero);
|
||||
|
||||
BOOST_CHECK(pow_zero_to_the_zero == 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user