Fix rounding

This commit is contained in:
Victor Zverovich
2019-02-02 08:49:25 -08:00
parent e61cac687d
commit b8d34e0db3
3 changed files with 15 additions and 7 deletions

View File

@@ -9,7 +9,7 @@
#include "fmt/format.h"
#include "gtest.h"
bool reported_skipped;
static bool reported_skipped;
#undef TEST
#define TEST(test_fixture, test_name) \
@@ -39,3 +39,8 @@ TEST(GrisuTest, Inf) {
TEST(GrisuTest, Zero) {
EXPECT_EQ("0", fmt::format("{}", 0.0));
}
TEST(GrisuTest, Round) {
EXPECT_EQ("1.9156918820264798e-56",
fmt::format("{}", 1.9156918820264798e-56));
}