mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-15 07:20:05 +00:00
Add a test case from https://github.com/vitaut/format/issues/14
This commit is contained in:
parent
1106004e88
commit
b6f383907b
@ -300,6 +300,15 @@ TEST(WriterTest, WriteDouble) {
|
||||
CHECK_WRITE(4.2l);
|
||||
}
|
||||
|
||||
TEST(WriterTest, WriteDoubleAtBufferBoundary) {
|
||||
fmt::Writer writer;
|
||||
int i = 0;
|
||||
while (i++ < 130) {
|
||||
std::cout << i << std::endl;
|
||||
writer << 1.01;
|
||||
}
|
||||
}
|
||||
|
||||
TEST(WriterTest, WriteChar) {
|
||||
CHECK_WRITE('a');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user