From 63f0bd73e4dcef1e4b4ca3368e625a46a755c90c Mon Sep 17 00:00:00 2001 From: jlamothe Date: Sat, 11 Nov 2023 21:49:52 +0000 Subject: [PATCH] ensure first_log and last_log match when appending to empty log --- test/append-test-log.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/append-test-log.c b/test/append-test-log.c index 0aa0908..b6a1d34 100644 --- a/test/append-test-log.c +++ b/test/append-test-log.c @@ -57,6 +57,15 @@ append_to_empty(TestState *s) test.first_log, 0 ); + + // last_log should match first_log + print("\t\tlast_log\n"); + chk_ptr_eq( + s, + "ERROR: append_test_log(): append to empty: last_log:", + test.last_log, + test.first_log + ); } //jl