Add a test case for writing a double to a filled buffer.

This commit is contained in:
Victor Zverovich
2014-04-09 08:05:23 -07:00
parent 87545b0af4
commit 5f9574c3c1
2 changed files with 11 additions and 2 deletions
+8
View File
@@ -328,6 +328,14 @@ TEST(WriterTest, WriteDoubleAtBufferBoundary) {
writer << 1.23456789;
}
TEST(WriterTest, WriteDoubleWithFilledBuffer) {
fmt::Writer writer;
// Fill the buffer.
for (int i = 0; i < fmt::internal::INLINE_BUFFER_SIZE; ++i)
writer << ' ';
writer << 1.2;
}
TEST(WriterTest, WriteChar) {
CHECK_WRITE('a');
}