summaryrefslogtreecommitdiff
path: root/json-glib/tests/array.c
Commit message (Collapse)AuthorAgeFilesLines
* Drop or mark unused parametersEmmanuele Bassi2022-10-111-1/+1
| | | | Avoid compiler warnings when running with `-Wunused-parameter`.
* Drop usage of raw g_assert in reader test in favor of g_assert_*()Frederic Martinsons2022-10-111-15/+15
| | | | | | | | This will give more informative message in case of fail assertions. Moreover GLib (when compiling with G_DISABLE_ASSERT) disable g_assert totally, that would make these tests no-op Signed-off-by: Frederic Martinsons <frederic.martinsons@sigfox.com>
* Use fuzzy comparison for floating point valuesEmmanuele Bassi2017-11-041-7/+2
| | | | | | Direct comparison should never be used for floating point values. Fixes #27 and #28.
* Remove compile time GLib version checkEmmanuele Bassi2013-08-211-4/+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/+3
| | | | | | | | 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: Improve coverageEmmanuele Bassi2012-10-261-0/+4
|
* tests: Improve coverageEmmanuele Bassi2012-10-261-0/+30
|
* build: Rename test binariesEmmanuele Bassi2011-06-191-0/+122
It's pointless to add the '-test' suffix to files under the tests/ directory.