Add a test_cast test case. This checks that the casting that is implied when calling the various json_object_get_FOO() functions on a differently typed object works correctly.

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@68 327403b1-1117-474d-bef2-5cb71233fd97
This commit is contained in:
Eric Haszlakiewicz
2011-05-03 20:42:25 +00:00
parent 886c4fbebf
commit 41e67d0f6f
4 changed files with 120 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ libjson_la_SOURCES = \
linkhash.c \
printbuf.c
check_PROGRAMS = test1 test2 test4 test_parse_int64 test_null
check_PROGRAMS = test1 test2 test4 test_parse_int64 test_null test_cast
test1_SOURCES = test1.c
test1_LDADD = $(lib_LTLIBRARIES)
@@ -49,7 +49,10 @@ test_parse_int64_LDADD = $(lib_LTLIBRARIES)
test_null_SOURCES = test_null.c
test_null_LDADD = $(lib_LTLIBRARIES)
TESTS = test1.test test2.test test4.test parse_int64.test test_null.test
test_cast_SOURCES = test_cast.c
test_cast_LDADD = $(lib_LTLIBRARIES)
TESTS = test1.test test2.test test4.test parse_int64.test test_null.test test_cast.test
EXTRA_DIST += $(TESTS)
testsubdir=testSubDir
TESTS_ENVIRONMENT = top_builddir=$(top_builddir)