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);
|
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');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user