summaryrefslogtreecommitdiff
path: root/json-glib/tests/path.c
Commit message (Collapse)AuthorAgeFilesLines
* tests: Fix some memory leaks in the testsPhilip Withnall2017-12-151-0/+1
| | | | | | | | | We can’t do this by porting to g_autoptr(), because json-glib needs to be buildable using MSVC. Sad panda. Signed-off-by: Philip Withnall <withnall@endlessm.com> https://gitlab.gnome.org/GNOME/json-glib/issues/30
* Add tests for json paths (2 invalids, 1 valid)bi2013-12-021-0/+24
| | | | | | | Signed-off-by: Emmanuele Bassi <ebassi@gnome.org> Conflicts: json-glib/tests/path.c
* 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: Improve the JsonPath suiteEmmanuele Bassi2013-05-161-61/+121
| | | | | Run each expression as a separate unit, so we can catch errors more quickly and easily.
* tests/path: Start adding negative tests for JsonPathEmmanuele Bassi2013-05-151-0/+14
|
* tests/path: Allow testing for valid queriesEmmanuele Bassi2013-05-151-14/+50
| | | | | | | This will allow adding negative tests to JsonPath. The tests will only be caught when compiling the query; an invalid query won't return a match, so there's no point to check matches.
* path: Fix get all object members with wildcardEmmanuele Bassi2013-01-111-5/+23
| | | | | Similar to the fix that went in commit path e348b1fa, we need to fix getting all the members of an object by using the wildcard notation.
* path: Fix get all array elements with wildcardJuan A. Suarez Romero2013-01-111-0/+4
| | | | | | | | | Using the same data as in tests, asking for $['store']['book'][*] JSON path should return all the book objects in an array. But that array is returned inside another array, dupped several times. https://bugzilla.gnome.org/show_bug.cgi?id=691557
* 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.
* tests/path: Link expressions and resultsEmmanuele Bassi2011-07-051-27/+47
| | | | | Use a structure to keep the testable expressions and their results together.
* build: Rename test binariesEmmanuele Bassi2011-06-191-0/+143
It's pointless to add the '-test' suffix to files under the tests/ directory.