Add lots of tests for pack/unpack code, fix bugs found

Closes GH-12.
This commit is contained in:
Petri Lehtinen
2011-02-22 19:08:41 +02:00
parent a33c3628da
commit 58f9d65535
7 changed files with 397 additions and 111 deletions

View File

@@ -841,8 +841,8 @@ denotes the C type that is expected as the corresponding argument.
``O`` (any value) [json_t \*]
Like ``o``, but the argument's reference count is incremented.
This is useful if you pack and array an array or object and want
to keep the reference for the JSON value consumed by ``O`` to
This is useful if you pack into an array or object and want to
keep the reference for the JSON value consumed by ``O`` to
yourself.
``[fmt]`` (array)