tests/test_json.c

changeset 1582
32b82c424252
parent 1573
cd2e974410ad
child 1586
7f1cadc3ebc1
--- a/tests/test_json.c	Sat Dec 13 12:50:37 2025 +0100
+++ b/tests/test_json.c	Sat Dec 13 12:54:56 2025 +0100
@@ -1254,7 +1254,7 @@
     cxJsonObjPutLiteral(obj, "bool", CX_JSON_FALSE);
     cxJsonObjPutNumber(obj, "int", 47); // purposely use PutNumber to put an int
     CxJsonValue *strings = cxJsonObjPutArr(obj, "strings");
-    cxJsonArrAddCxStrings(strings, (cxstring[]) {CX_STR("hello"), CX_STR("world")}, 2);
+    cxJsonArrAddCxStrings(strings, (cxstring[]) {cx_str("hello"), cx_str("world")}, 2);
     CxJsonValue *nested = cxJsonObjPutObj(obj, "nested");
     CxJsonValue *objects = cxJsonObjPutArr(nested, "objects");
     CxJsonValue *obj_in_arr[2] = {cxJsonCreateObj(allocator), cxJsonCreateObj(allocator)};

mercurial