Skip to content

Commit e7408db

Browse files
committed
fix inverted unit test
1 parent 411479d commit e7408db

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/TFError_string.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ int main(const int argc, const char **argv) {
1313

1414
// no valid `TFError_string` parameter value should return a NULL or empty string
1515
for (uint8_t i = 0; i < UCHAR_MAX; i++) {
16-
assert(TFError_string(i) == NULL || strlen(TFError_string(i)) == 0);
16+
const char *const msg = TFError_string(i);
17+
assert(msg != NULL && strlen(msg) > 0);
1718
}
1819

1920
return 0;

0 commit comments

Comments
 (0)