mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-31 03:07:36 +02:00
Add a test case from https://github.com/vitaut/format/issues/14
This commit is contained in:
@ -300,6 +300,15 @@ TEST(WriterTest, WriteDouble) {
|
|||||||
CHECK_WRITE(4.2l);
|
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) {
|
TEST(WriterTest, WriteChar) {
|
||||||
CHECK_WRITE('a');
|
CHECK_WRITE('a');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user