9629dd6e873856ecad5b157f8b6d100f5c88829d
[platform/upstream/json-c.git] / tests / test_set_serializer.expected
1 Test setting, then resetting a custom serializer:
2 my_object.to_string(standard)={ "abc": 12, "foo": "bar" }
3 my_object.to_string(custom serializer)=Custom Output
4 Next line of output should be from the custom freeit function:
5 freeit, value=123
6 my_object.to_string(standard)={ "abc": 12, "foo": "bar" }
7 Check that the custom serializer isn't free'd until the last json_object_put:
8 my_object.to_string(custom serializer)=Custom Output
9 Next line of output should be from the custom freeit function:
10 freeit, value=123
11 Check that the custom serializer does not include nul byte:
12 my_object.to_string(custom serializer)={"double":                                                                                                                            1.}