xo-indentlog: fix pretty-print utests

This commit is contained in:
Roland Conybeare 2025-08-06 09:31:10 -05:00
commit c13b2a502c
2 changed files with 4 additions and 4 deletions

View file

@ -78,7 +78,7 @@ namespace ut {
const test_case & tc = s_testcase_v[i];
std::size_t z = tc.buf_capacity_;
log_streambuf<char> sbuf(z, true /*debug_flag*/);
log_streambuf<char> sbuf(z, false /*debug_flag*/);
std::ostream ss(&sbuf);
REQUIRE(sbuf.capacity() == z);

View file

@ -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 ] ]");
}
}