Test further entries in optv
This commit is contained in:
parent
4443319f4f
commit
a804676055
|
@ -55,6 +55,16 @@ void sleuth_test_find_brand(void) {
|
|||
opt = gargoyle_find_brand(optc, optv, "NO_FOO", NULL, 0, GARGOYLE_FLG_FLXBL);
|
||||
CU_ASSERT_PTR_NOT_NULL(opt);
|
||||
CU_ASSERT_NSTRING_EQUAL(opt->brand, "foo", opt->brand_sz);
|
||||
|
||||
opt = gargoyle_find_brand(optc, optv, "bar", NULL, 0, 0);
|
||||
CU_ASSERT_PTR_NOT_NULL(opt);
|
||||
CU_ASSERT_NSTRING_EQUAL(opt->brand, "bar", opt->brand_sz);
|
||||
|
||||
opt = gargoyle_find_brand(optc, optv, "ba", NULL, 0, 0);
|
||||
CU_ASSERT_PTR_NULL(opt);
|
||||
|
||||
opt = gargoyle_find_brand(optc, optv, "baro", NULL, 0, 0);
|
||||
CU_ASSERT_PTR_NULL(opt);
|
||||
}
|
||||
|
||||
void sleuth_test_find_emblem(void) {
|
||||
|
|
Loading…
Reference in New Issue