diff --git a/test/util/test_memory.c b/test/util/test_memory.c index 93c2cc3..dc8f258 100644 --- a/test/util/test_memory.c +++ b/test/util/test_memory.c @@ -313,8 +313,8 @@ static void test_memoryCompare(void **state) { assert_int_equal(memoryCompare(a, a, size), 0); assert_int_equal(memoryCompare(b, b, size), 0); - // Cannot compare 0 bytes - expect_assert_failure(memoryCompare(a, b, 0)); + // Comparison of 0 bytes is always true + assert_true(memoryCompare(a, b, 0)); // Compare different sizes (should assert, so we only test the API contract) // Not possible with current API, as size is explicit, but document intent.