From 5c2ef82a9eaa38e5a939aca7063c39172f745b83 Mon Sep 17 00:00:00 2001 From: Nick Chambers Date: Sat, 2 Jul 2022 19:32:33 -0500 Subject: [PATCH] Fix testcase to reflect input --- test/sleuth.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/sleuth.c b/test/sleuth.c index 3ae454c..d4a3137 100644 --- a/test/sleuth.c +++ b/test/sleuth.c @@ -111,7 +111,8 @@ void sleuth_test_find_emblem(void) { CU_ASSERT_NSTRING_EQUAL(opt->brand, "bar", opt->brand_sz); opt = gargoyle_find_emblem(optc, optv, 'B', 0); - CU_ASSERT_PTR_NULL(opt); + CU_ASSERT_PTR_NOT_NULL(opt); + CU_ASSERT_NSTRING_EQUAL(opt->brand, "blu", opt->brand_sz); opt = gargoyle_find_emblem(optc, optv, 'B', GARGOYLE_FLG_ECASE); CU_ASSERT_PTR_NOT_NULL(opt);