diff -r 197450c2b0b3 -r 7b66371d6da3 tests/test_json.c --- a/tests/test_json.c Fri Dec 05 16:38:17 2025 +0100 +++ b/tests/test_json.c Sat Dec 06 13:46:55 2025 +0100 @@ -239,8 +239,8 @@ CxJsonValue *mixed2 = cxJsonObjGet(obj, "mixed2"); char test[16]; - strncpy(test, mixed2->value.string.ptr, 15); - CX_TEST_ASSERT(cxJsonIsString(mixed2)); + strncpy(test, mixed2->string.ptr, 15); + CX_TEST_ASSERT(cxJsonIsString(mixed2)); CX_TEST_ASSERT(0 == cx_strcmp( cxJsonAsCxString(mixed2), "123\xce\xa3\xf0\x9f\xaf\x85ß") @@ -1396,14 +1396,14 @@ CX_TEST_ASSERT(0 == cx_strcmp(cx_strn(buf.space, buf.size), "3.141")); // test 6 digits, but two are left of the decimal point - num->value.number = 47.110815; + num->number = 47.110815; cxBufferReset(&buf); writer.frac_max_digits = 6; cxJsonWrite(&buf, num, cxBufferWriteFunc, &writer); CX_TEST_ASSERT(0 == cx_strcmp(cx_strn(buf.space, buf.size), "47.110815")); // test 4 digits with exponent - num->value.number = 5.11223344e23; + num->number = 5.11223344e23; cxBufferReset(&buf); writer.frac_max_digits = 4; cxJsonWrite(&buf, num, cxBufferWriteFunc, &writer);