From d052bdae029dad310758f59c2a79eae4c2825afa Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Fri, 27 Dec 2013 07:46:02 -0800 Subject: [PATCH] Simplify the WriteDoubleAtBufferBoundary test. --- format_test.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/format_test.cc b/format_test.cc index b9367951..91b5fe73 100644 --- a/format_test.cc +++ b/format_test.cc @@ -302,11 +302,8 @@ TEST(WriterTest, WriteDouble) { TEST(WriterTest, WriteDoubleAtBufferBoundary) { fmt::Writer writer; - int i = 0; - while (i++ < 130) { - std::cout << i << std::endl; - writer << 1.01; - } + for (int i = 0; i < 100; ++i) + writer << 1.23456789; } TEST(WriterTest, WriteChar) {