ensure latest log text is correct when appended

This commit is contained in:
jlamothe
2023-11-11 22:53:04 +00:00
parent 63f0bd73e4
commit 3393c3b9af
3 changed files with 49 additions and 0 deletions

View File

@@ -58,6 +58,15 @@ append_to_empty(TestState *s)
0
);
// log should say "foo"
print("\t\t\ttext\n");
chk_str_eq(
s,
"ERROR: append_test_log(): append to empty: first_log: text:",
test.first_log->text,
"foo"
);
// last_log should match first_log
print("\t\tlast_log\n");
chk_ptr_eq(