Fix clang tidy (#6463)

* Fix clang tidy

* Add exponent overflow test
This commit is contained in:
Olek
2026-03-04 11:30:33 -05:00
committed by GitHub
parent bc5ec3c962
commit 5afe8cc321
2 changed files with 17 additions and 0 deletions

View File

@@ -2252,6 +2252,12 @@ struct HostFuncImpl_test : public beast::unit_test::suite
auto const result = hfs.floatSet(10, -1, 0);
BEAST_EXPECT(result) && BEAST_EXPECT(*result == float1);
}
{
auto const result = hfs.floatSet(1, Number::maxExponent + normalExp + 1, 0);
BEAST_EXPECT(!result) &&
BEAST_EXPECT(result.error() == HostFunctionError::FLOAT_COMPUTATION_ERROR);
}
}
void