From 1aa32e873c2e0db265397faa8b3089de1aec3e6d Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Wed, 6 Aug 2025 09:31:10 -0500 Subject: [PATCH] xo-indentlog: fix pretty-print utests --- xo-indentlog/utest/log_streambuf.test.cpp | 2 +- xo-indentlog/utest/pretty_vector.test.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/xo-indentlog/utest/log_streambuf.test.cpp b/xo-indentlog/utest/log_streambuf.test.cpp index e145bd96..12b3b388 100644 --- a/xo-indentlog/utest/log_streambuf.test.cpp +++ b/xo-indentlog/utest/log_streambuf.test.cpp @@ -78,7 +78,7 @@ namespace ut { const test_case & tc = s_testcase_v[i]; std::size_t z = tc.buf_capacity_; - log_streambuf sbuf(z, true /*debug_flag*/); + log_streambuf sbuf(z, false /*debug_flag*/); std::ostream ss(&sbuf); REQUIRE(sbuf.capacity() == z); diff --git a/xo-indentlog/utest/pretty_vector.test.cpp b/xo-indentlog/utest/pretty_vector.test.cpp index dc608b2e..47cad29b 100644 --- a/xo-indentlog/utest/pretty_vector.test.cpp +++ b/xo-indentlog/utest/pretty_vector.test.cpp @@ -62,7 +62,7 @@ namespace ut { pps.pretty(test); - REQUIRE(ss.str() == "[\n 1,\n 2,\n 3,\n 4,\n 5,\n 6\n]"); + REQUIRE(ss.str() == "[ 1,\n 2,\n 3,\n 4,\n 5,\n 6 ]"); } TEST_CASE("prettyvec3", "[pretty]") { @@ -77,7 +77,7 @@ namespace ut { pps.pretty(test); - REQUIRE(ss.str() == "[\n [1, 2, 3, 4],\n [4, 5, 6, 7]\n]"); + REQUIRE(ss.str() == "[ [1, 2, 3, 4],\n [4, 5, 6, 7] ]"); } TEST_CASE("prettyvec4", "[pretty]") { @@ -92,6 +92,6 @@ namespace ut { pps.pretty(test); - REQUIRE(ss.str() == "[\n [\n 1,\n 2,\n 3,\n 4\n ],\n [\n 4,\n 5,\n 6,\n 7\n ]\n]"); + REQUIRE(ss.str() == "[ [ 1,\n 2,\n 3,\n 4 ],\n [ 4,\n 5,\n 6,\n 7 ] ]"); } }