From c13b2a502c36c3170f3c75f1325bfd94d50dc5d2 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 --- utest/log_streambuf.test.cpp | 2 +- utest/pretty_vector.test.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/utest/log_streambuf.test.cpp b/utest/log_streambuf.test.cpp index e145bd9..12b3b38 100644 --- a/utest/log_streambuf.test.cpp +++ b/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/utest/pretty_vector.test.cpp b/utest/pretty_vector.test.cpp index dc608b2..47cad29 100644 --- a/utest/pretty_vector.test.cpp +++ b/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 ] ]"); } }