xo-indentlog: +1 more cond utest

This commit is contained in:
Roland Conybeare 2026-01-20 16:51:25 -05:00
commit 1b6775d032

View file

@ -37,8 +37,21 @@ namespace ut {
{
std::stringstream ss;
int * ptr = nullptr;
ss << cond(ptr != nullptr, xtag("ptr", 123), xtag("ptr", "null"));
ss << cond(ptr, xtag("ptr", 123), xtag("ptr", "null"));
REQUIRE(ss.str() == " :ptr null");
}
{
std::stringstream ss;
int * ptr = nullptr;
ss << xtag("ptr", cond(ptr, 123, "null"));
REQUIRE(ss.str() == " :ptr null");
}
}