Added a couple of tests.

This commit is contained in:
Daniel Lemire 2022-10-02 11:09:08 -04:00
parent e71137f71c
commit b4d7cceb93

View File

@ -481,6 +481,7 @@ TEST_CASE("64bit.inf") {
}
TEST_CASE("64bit.general") {
verify("-1e-999",-0.0);
verify("-2.2222222222223e-322",-0x1.68p-1069);
verify("9007199254740993.0", 0x1p+53);
verify("860228122.6654514319E+90", 0x1.92bb20990715fp+328);
@ -615,6 +616,7 @@ TEST_CASE("32bit.inf") {
}
TEST_CASE("32bit.general") {
verify("-1e-999",-0.0f);
verify("1.1754941406275178592461758986628081843312458647327962400313859427181746759860647699724722770042717456817626953125", 0x1.2ced3p+0f);
verify("1.1754941406275178592461758986628081843312458647327962400313859427181746759860647699724722770042717456817626953125e-38", 0x1.fffff8p-127f);
verify(append_zeros("1.1754941406275178592461758986628081843312458647327962400313859427181746759860647699724722770042717456817626953125",655), 0x1.2ced3p+0f);