Add some basic tests for verifying json_object_equal behavior

Do some basic checks on ints, doubles, strings, arrays and "complex" objects.
This commit is contained in:
Helmut Schaa
2016-01-13 15:40:08 +01:00
parent 00e475c434
commit dec5fcd50b
5 changed files with 172 additions and 0 deletions

12
tests/test_compare.test Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/sh
# Common definitions
if test -z "$srcdir"; then
srcdir="${0%/*}"
test "$srcdir" = "$0" && srcdir=.
test -z "$srcdir" && srcdir=.
fi
. "$srcdir/test-defs.sh"
run_output_test test_compare
exit $?