adding a test

This commit is contained in:
Daniel Lemire 2023-12-06 21:17:09 -05:00
parent 35d523195b
commit 604424b624

View File

@ -825,6 +825,7 @@ TEST_CASE("64bit.inf") {
} }
TEST_CASE("64bit.general") { TEST_CASE("64bit.general") {
verify("0.95000000000000000000",0.95);
verify("22250738585072012e-324",0x1p-1022); /* limit between normal and subnormal*/ verify("22250738585072012e-324",0x1p-1022); /* limit between normal and subnormal*/
verify("-22250738585072012e-324",-0x1p-1022); /* limit between normal and subnormal*/ verify("-22250738585072012e-324",-0x1p-1022); /* limit between normal and subnormal*/
verify("-1e-999", -0.0, std::errc::result_out_of_range); verify("-1e-999", -0.0, std::errc::result_out_of_range);