Eric Haszlakiewicz | 4b1a066 | 2012-09-09 13:53:12 -0500 | [diff] [blame^] | 1 | Test setting, then resetting a custom serializer: |
Eric Haszlakiewicz | 38f421a | 2012-09-02 15:21:56 -0500 | [diff] [blame] | 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 |