summaryrefslogtreecommitdiff
path: root/json-glib/tests/node.c
Commit message (Collapse)AuthorAgeFilesLines
* remove/add whitespace for coding conventiontallua2021-10-101-2/+1
|
* set node->data pointer to null when unsettallua2021-04-061-0/+18
|
* Use fuzzy comparison for floating point valuesEmmanuele Bassi2017-11-041-9/+7
| | | | | | Direct comparison should never be used for floating point values. Fixes #27 and #28.
* core: Add immutability support to core objectsPhilip Withnall2016-03-011-0/+320
| | | | | | | | | | | Add an immutable mode to JsonNode, JsonObject, JsonArray and JsonValue. This is an optional mode which objects enter by calling json_*_seal(). It is a one-way transition, which means that we can build and manipulate objects as much as desired, before sealing them and enjoying the benefits of immutable objects: no need to take copies when handling them, persistent hash values (still to be implemented). https://bugzilla.gnome.org/show_bug.cgi?id=756121
* Remove compile time GLib version checkEmmanuele Bassi2013-08-211-3/+0
| | | | | We depend on a new version of GLib, so we can remove a bunch of old version checks.
* tests: Put g_type_init() under conditional compilationEmmanuele Bassi2012-10-271-0/+2
| | | | | | | | Starting from GLib 2.36, g_type_init() is going to be deprecated (the type system will be initialized as soon as libgobject is paged in, using constructors). As I don't want to bump dependencies just for that, the call to g_type_init() should be placed under a compile-time version check, to keep the noise from compiler warnings down.
* node: Implicitly convert numeric typesEmmanuele Bassi2012-07-151-0/+35
| | | | | | | | When retrieving an int, a double, or a boolean, we can use the C rules of implicit conversion to move from the actual stored type inside the JsonValue to the requested C type. https://bugzilla.gnome.org/show_bug.cgi?id=660795
* Improve test coverageEmmanuele Bassi2012-06-301-0/+18
|
* tests: Add more coverage to JsonNodeEmmanuele Bassi2012-06-301-6/+107
|
* Adapt to the demise of single includes in GLibMatthias Clasen2011-10-121-1/+1
|
* build: Rename test binariesEmmanuele Bassi2011-06-191-0/+112
It's pointless to add the '-test' suffix to files under the tests/ directory.