basic: add helper function to print </==/>

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2022-05-25 16:02:25 +02:00
parent c20b2f2421
commit f90ee9ff66
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -835,7 +835,7 @@ static void test_strverscmp_improved_one(const char* a, const char *b, int expec
log_info("'%s' %s '%s'%s",
strnull(a),
r > 0 ? ">" : r < 0 ? "<" : "==",
comparison_operator(r),
strnull(b),
r == expected ? "" : " !!!!!!!!!!!!!");
assert_se(r == expected);