Enhance tests
authorPetri Lehtinen <petri@digip.org>
Wed, 16 Dec 2009 20:05:55 +0000 (22:05 +0200)
committerPetri Lehtinen <petri@digip.org>
Mon, 21 Dec 2009 10:50:49 +0000 (12:50 +0200)
commit3889af476ba52e98de210e8e0b3b4a44a26b3a60
treec2f2e6187a50edbfe325e85e2f70981af185bff3
parent19a606d7361e73ff2f5e0b240c2adb07b35e4273
Enhance tests

* Now that JSON_SORT_KEYS is implemented, take it into use with the
  valid and valid-strip suites. This is to ensure that the tests
  remain valid even if the string hash function is changed in the
  future.

* Remove test_dump API test. Instead, implement the same tests more
  elegantly in the encoding-flags suite.
32 files changed:
test/.gitignore
test/suites/api/Makefile.am
test/suites/api/test_dump.c [deleted file]
test/suites/encoding-flags/array/input [new file with mode: 0644]
test/suites/encoding-flags/array/output [new file with mode: 0644]
test/suites/encoding-flags/compact-array/env [new file with mode: 0644]
test/suites/encoding-flags/compact-array/input [new file with mode: 0644]
test/suites/encoding-flags/compact-array/output [new file with mode: 0644]
test/suites/encoding-flags/compact-object/env [new file with mode: 0644]
test/suites/encoding-flags/compact-object/input [new file with mode: 0644]
test/suites/encoding-flags/compact-object/output [new file with mode: 0644]
test/suites/encoding-flags/ensure-ascii/env [new file with mode: 0644]
test/suites/encoding-flags/ensure-ascii/input [new file with mode: 0644]
test/suites/encoding-flags/ensure-ascii/output [new file with mode: 0644]
test/suites/encoding-flags/indent-array/env [new file with mode: 0644]
test/suites/encoding-flags/indent-array/input [new file with mode: 0644]
test/suites/encoding-flags/indent-array/output [new file with mode: 0644]
test/suites/encoding-flags/indent-compact-array/env [new file with mode: 0644]
test/suites/encoding-flags/indent-compact-array/input [new file with mode: 0644]
test/suites/encoding-flags/indent-compact-array/output [new file with mode: 0644]
test/suites/encoding-flags/indent-compact-object/env [new file with mode: 0644]
test/suites/encoding-flags/indent-compact-object/input [new file with mode: 0644]
test/suites/encoding-flags/indent-compact-object/output [new file with mode: 0644]
test/suites/encoding-flags/indent-object/env [new file with mode: 0644]
test/suites/encoding-flags/indent-object/input [new file with mode: 0644]
test/suites/encoding-flags/indent-object/output [new file with mode: 0644]
test/suites/encoding-flags/object/input [new file with mode: 0644]
test/suites/encoding-flags/object/output [new file with mode: 0644]
test/suites/valid-strip/complex-array/output
test/suites/valid-strip/run
test/suites/valid/complex-array/output
test/suites/valid/run