Skip to content

Commit

Permalink
Merge pull request #49 from sfiera/double
Browse files Browse the repository at this point in the history
Remove questionable long double test
  • Loading branch information
sfiera authored Nov 16, 2024
2 parents 06fd2f1 + b040204 commit 2bf729d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/cpp/test/float.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
using StrToDTest = ::testing::Test;
using FloatTest = ::testing::Test;
using ::testing::Eq;
using ::testing::Ne;

namespace pntest {

Expand Down Expand Up @@ -384,10 +383,4 @@ TEST_F(FloatTest, PrintExtrema) {
EXPECT_THAT(dtoa(1.7976931348623157e308), Eq("1.7976931348623157e+308"));
}

TEST_F(FloatTest, LongDouble) {
volatile long double num = 2877.0;
volatile long double den = 1000000.0;
ASSERT_NE(double(num / den), double(num) / double(den));
}

} // namespace pntest

0 comments on commit 2bf729d

Please sign in to comment.