mirror of
https://github.com/DaveGamble/cJSON.git
synced 2025-08-26 08:12:32 +08:00
Change name from Configuration to Context
This commit is contained in:
@ -27,12 +27,12 @@
|
||||
static void assert_print_string(const char *expected, const char *input)
|
||||
{
|
||||
unsigned char printed[1024];
|
||||
printbuffer buffer = { 0, 0, 0, 0, 0, default_configuration };
|
||||
printbuffer buffer = { 0, 0, 0, 0, 0, default_context };
|
||||
buffer.buffer = printed;
|
||||
buffer.length = sizeof(printed);
|
||||
buffer.offset = 0;
|
||||
buffer.noalloc = true;
|
||||
buffer.configuration = global_configuration;
|
||||
buffer.context = global_context;
|
||||
|
||||
TEST_ASSERT_TRUE_MESSAGE(print_string_ptr((const unsigned char*)input, &buffer), "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