mirror of
https://github.com/DaveGamble/cJSON.git
synced 2023-08-10 21:13:26 +03:00
print_string: return boolean instead of pointer
This commit is contained in:
@ -33,7 +33,7 @@ static void assert_print_string(const char *expected, const char *input)
|
||||
buffer.offset = 0;
|
||||
buffer.noalloc = true;
|
||||
|
||||
TEST_ASSERT_NOT_NULL_MESSAGE(print_string_ptr((const unsigned char*)input, &buffer, &global_hooks), "Failed to print string.");
|
||||
TEST_ASSERT_TRUE_MESSAGE(print_string_ptr((const unsigned char*)input, &buffer, &global_hooks), "Failed to print string.");
|
||||
TEST_ASSERT_EQUAL_STRING_MESSAGE(expected, printed, "The printed string isn't as expected.");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user