Fix formatting of long double.

This commit is contained in:
Victor Zverovich
2014-08-13 07:51:02 -07:00
parent 18f1e08685
commit 1a0c76a81a
2 changed files with 13 additions and 1 deletions

View File

@@ -374,7 +374,11 @@ TEST(WriterTest, WriteLongLong) {
TEST(WriterTest, WriteDouble) {
CHECK_WRITE(4.2);
CHECK_WRITE(-4.2);
}
TEST(WriterTest, WriteLongDouble) {
CHECK_WRITE(4.2l);
CHECK_WRITE(std::numeric_limits<long double>::max());
}
TEST(WriterTest, WriteDoubleAtBufferBoundary) {