avro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bru...@apache.org
Subject svn commit: r1057727 [1/4] - in /avro/trunk/lang/c/jansson/test/suites: ./ api/ invalid-strip/ invalid-strip/apostrophe/ invalid-strip/ascii-unicode-identifier/ invalid-strip/brace-comma/ invalid-strip/bracket-comma/ invalid-strip/bracket-one-comma/ in...
Date Tue, 11 Jan 2011 16:50:53 GMT
Author: brucem
Date: Tue Jan 11 16:50:35 2011
New Revision: 1057727

URL: http://svn.apache.org/viewvc?rev=1057727&view=rev
Log:
AVRO-729. Part 1 of updating to Jansson 1.3.

Added:
    avro/trunk/lang/c/jansson/test/suites/
    avro/trunk/lang/c/jansson/test/suites/Makefile.am
    avro/trunk/lang/c/jansson/test/suites/api/
    avro/trunk/lang/c/jansson/test/suites/api/Makefile.am
    avro/trunk/lang/c/jansson/test/suites/api/run
    avro/trunk/lang/c/jansson/test/suites/api/test_array.c
    avro/trunk/lang/c/jansson/test/suites/api/test_copy.c
    avro/trunk/lang/c/jansson/test/suites/api/test_dump.c
    avro/trunk/lang/c/jansson/test/suites/api/test_equal.c
    avro/trunk/lang/c/jansson/test/suites/api/test_load.c
    avro/trunk/lang/c/jansson/test/suites/api/test_number.c
    avro/trunk/lang/c/jansson/test/suites/api/test_object.c
    avro/trunk/lang/c/jansson/test/suites/api/test_simple.c
    avro/trunk/lang/c/jansson/test/suites/api/util.h
    avro/trunk/lang/c/jansson/test/suites/invalid/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/apostrophe/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/apostrophe/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/apostrophe/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/ascii-unicode-identifier/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/ascii-unicode-identifier/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/ascii-unicode-identifier/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/brace-comma/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/brace-comma/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/brace-comma/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/bracket-comma/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/bracket-comma/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/bracket-comma/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/bracket-one-comma/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/bracket-one-comma/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/bracket-one-comma/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/empty/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/empty/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/escaped-null-byte-in-string/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/escaped-null-byte-in-string/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/escaped-null-byte-in-string/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/extra-comma-in-array/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/extra-comma-in-array/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/extra-comma-in-array/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/extra-command-in-multiline-array/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/extra-command-in-multiline-array/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/extra-command-in-multiline-array/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/garbage-after-newline/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/garbage-after-newline/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/garbage-after-newline/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/garbage-at-the-end/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/garbage-at-the-end/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/garbage-at-the-end/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/integer-starting-with-zero/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/integer-starting-with-zero/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/integer-starting-with-zero/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/invalid-escape/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/invalid-escape/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/invalid-escape/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/invalid-identifier/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/invalid-identifier/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/invalid-identifier/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/invalid-negative-integerr/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/invalid-negative-integerr/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/invalid-negative-integerr/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/invalid-negative-real/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/invalid-negative-real/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/invalid-negative-real/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/invalid-second-surrogate/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/invalid-second-surrogate/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/invalid-second-surrogate/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/lone-open-brace/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/lone-open-brace/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/lone-open-brace/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/lone-open-bracket/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/lone-open-bracket/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/lone-open-bracket/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/lone-second-surrogate/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/lone-second-surrogate/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/lone-second-surrogate/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/minus-sign-without-number/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/minus-sign-without-number/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/minus-sign-without-number/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/negative-integer-starting-with-zero/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/negative-integer-starting-with-zero/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/negative-integer-starting-with-zero/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/null/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/null-byte-in-string/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/null-byte-in-string/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/null-byte-outside-string/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/null-byte-outside-string/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/null/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/null/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/object-apostrophes/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/object-apostrophes/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/object-apostrophes/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/object-garbage-at-end/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/object-garbage-at-end/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/object-garbage-at-end/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/object-in-unterminated-array/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/object-in-unterminated-array/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/object-in-unterminated-array/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/object-no-colon/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/object-no-colon/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/object-no-colon/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/object-no-value/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/object-no-value/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/object-no-value/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/object-unterminated-value/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/object-unterminated-value/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/object-unterminated-value/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/real-garbage-after-e/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/real-garbage-after-e/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/real-garbage-after-e/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/real-negative-overflow/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/real-negative-overflow/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/real-negative-overflow/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/real-positive-overflow/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/real-positive-overflow/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/real-positive-overflow/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/real-truncated-at-e/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/real-truncated-at-e/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/real-truncated-at-e/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/real-truncated-at-point/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/real-truncated-at-point/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/real-truncated-at-point/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/run
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/tab-character-in-string/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/tab-character-in-string/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/tab-character-in-string/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/too-big-negative-integer/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/too-big-negative-integer/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/too-big-negative-integer/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/too-big-positive-integer/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/too-big-positive-integer/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/too-big-positive-integer/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/truncated-unicode-surrogate/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/truncated-unicode-surrogate/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/truncated-unicode-surrogate/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/unicode-identifier/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/unicode-identifier/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/unicode-identifier/input   (with props)
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/unterminated-array/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/unterminated-array-and-object/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/unterminated-array-and-object/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/unterminated-array-and-object/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/unterminated-array/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/unterminated-array/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/unterminated-empty-key/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/unterminated-empty-key/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/unterminated-empty-key/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/unterminated-key/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/unterminated-key/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/unterminated-key/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/unterminated-object-and-array/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/unterminated-object-and-array/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/unterminated-object-and-array/input
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/unterminated-string/
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/unterminated-string/error
    avro/trunk/lang/c/jansson/test/suites/invalid-strip/unterminated-string/input
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/encoded-surrogate-half/
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/encoded-surrogate-half/error
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/encoded-surrogate-half/input
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/invalid-utf-8-after-backslash/
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/invalid-utf-8-after-backslash/error
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/invalid-utf-8-after-backslash/input
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/invalid-utf-8-in-array/
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/invalid-utf-8-in-array/error
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/invalid-utf-8-in-array/input
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/invalid-utf-8-in-bigger-int/
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/invalid-utf-8-in-bigger-int/error
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/invalid-utf-8-in-bigger-int/input
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/invalid-utf-8-in-escape/
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/invalid-utf-8-in-escape/error
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/invalid-utf-8-in-escape/input
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/invalid-utf-8-in-exponent/
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/invalid-utf-8-in-exponent/error
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/invalid-utf-8-in-exponent/input
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/invalid-utf-8-in-identifier/
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/invalid-utf-8-in-identifier/error
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/invalid-utf-8-in-identifier/input
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/invalid-utf-8-in-int/
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/invalid-utf-8-in-int/error
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/invalid-utf-8-in-int/input
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/invalid-utf-8-in-real-after-e/
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/invalid-utf-8-in-real-after-e/error
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/invalid-utf-8-in-real-after-e/input
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/invalid-utf-8-in-string/
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/invalid-utf-8-in-string/error
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/invalid-utf-8-in-string/input
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/lone-invalid-utf-8/
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/lone-invalid-utf-8/error
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/lone-invalid-utf-8/input
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/lone-utf-8-continuation-byte/
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/lone-utf-8-continuation-byte/error
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/lone-utf-8-continuation-byte/input
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/not-in-unicode-range/
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/not-in-unicode-range/error
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/not-in-unicode-range/input
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/overlong-3-byte-encoding/
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/overlong-3-byte-encoding/error
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/overlong-3-byte-encoding/input
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/overlong-4-byte-encoding/
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/overlong-4-byte-encoding/error
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/overlong-4-byte-encoding/input
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/overlong-ascii-encoding/
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/overlong-ascii-encoding/error
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/overlong-ascii-encoding/input
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/restricted-utf-8/
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/restricted-utf-8/error
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/restricted-utf-8/input
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/run
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/truncated-utf-8/
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/truncated-utf-8/error
    avro/trunk/lang/c/jansson/test/suites/invalid-unicode/truncated-utf-8/input
    avro/trunk/lang/c/jansson/test/suites/invalid/apostrophe/
    avro/trunk/lang/c/jansson/test/suites/invalid/apostrophe/error
    avro/trunk/lang/c/jansson/test/suites/invalid/apostrophe/input
    avro/trunk/lang/c/jansson/test/suites/invalid/ascii-unicode-identifier/
    avro/trunk/lang/c/jansson/test/suites/invalid/ascii-unicode-identifier/error
    avro/trunk/lang/c/jansson/test/suites/invalid/ascii-unicode-identifier/input
    avro/trunk/lang/c/jansson/test/suites/invalid/brace-comma/
    avro/trunk/lang/c/jansson/test/suites/invalid/brace-comma/error
    avro/trunk/lang/c/jansson/test/suites/invalid/brace-comma/input
    avro/trunk/lang/c/jansson/test/suites/invalid/bracket-comma/
    avro/trunk/lang/c/jansson/test/suites/invalid/bracket-comma/error
    avro/trunk/lang/c/jansson/test/suites/invalid/bracket-comma/input
    avro/trunk/lang/c/jansson/test/suites/invalid/bracket-one-comma/
    avro/trunk/lang/c/jansson/test/suites/invalid/bracket-one-comma/error
    avro/trunk/lang/c/jansson/test/suites/invalid/bracket-one-comma/input
    avro/trunk/lang/c/jansson/test/suites/invalid/empty/
    avro/trunk/lang/c/jansson/test/suites/invalid/empty/error
    avro/trunk/lang/c/jansson/test/suites/invalid/escaped-null-byte-in-string/
    avro/trunk/lang/c/jansson/test/suites/invalid/escaped-null-byte-in-string/error
    avro/trunk/lang/c/jansson/test/suites/invalid/escaped-null-byte-in-string/input
    avro/trunk/lang/c/jansson/test/suites/invalid/extra-comma-in-array/
    avro/trunk/lang/c/jansson/test/suites/invalid/extra-comma-in-array/error
    avro/trunk/lang/c/jansson/test/suites/invalid/extra-comma-in-array/input
    avro/trunk/lang/c/jansson/test/suites/invalid/extra-command-in-multiline-array/
    avro/trunk/lang/c/jansson/test/suites/invalid/extra-command-in-multiline-array/error
    avro/trunk/lang/c/jansson/test/suites/invalid/extra-command-in-multiline-array/input
    avro/trunk/lang/c/jansson/test/suites/invalid/garbage-after-newline/
    avro/trunk/lang/c/jansson/test/suites/invalid/garbage-after-newline/error
    avro/trunk/lang/c/jansson/test/suites/invalid/garbage-after-newline/input
    avro/trunk/lang/c/jansson/test/suites/invalid/garbage-at-the-end/
    avro/trunk/lang/c/jansson/test/suites/invalid/garbage-at-the-end/error
    avro/trunk/lang/c/jansson/test/suites/invalid/garbage-at-the-end/input
    avro/trunk/lang/c/jansson/test/suites/invalid/integer-starting-with-zero/
    avro/trunk/lang/c/jansson/test/suites/invalid/integer-starting-with-zero/error
    avro/trunk/lang/c/jansson/test/suites/invalid/integer-starting-with-zero/input
    avro/trunk/lang/c/jansson/test/suites/invalid/invalid-escape/
    avro/trunk/lang/c/jansson/test/suites/invalid/invalid-escape/error
    avro/trunk/lang/c/jansson/test/suites/invalid/invalid-escape/input
    avro/trunk/lang/c/jansson/test/suites/invalid/invalid-identifier/
    avro/trunk/lang/c/jansson/test/suites/invalid/invalid-identifier/error
    avro/trunk/lang/c/jansson/test/suites/invalid/invalid-identifier/input
    avro/trunk/lang/c/jansson/test/suites/invalid/invalid-negative-integerr/
    avro/trunk/lang/c/jansson/test/suites/invalid/invalid-negative-integerr/error
    avro/trunk/lang/c/jansson/test/suites/invalid/invalid-negative-integerr/input
    avro/trunk/lang/c/jansson/test/suites/invalid/invalid-negative-real/
    avro/trunk/lang/c/jansson/test/suites/invalid/invalid-negative-real/error
    avro/trunk/lang/c/jansson/test/suites/invalid/invalid-negative-real/input
    avro/trunk/lang/c/jansson/test/suites/invalid/invalid-second-surrogate/
    avro/trunk/lang/c/jansson/test/suites/invalid/invalid-second-surrogate/error
    avro/trunk/lang/c/jansson/test/suites/invalid/invalid-second-surrogate/input
    avro/trunk/lang/c/jansson/test/suites/invalid/lone-open-brace/
    avro/trunk/lang/c/jansson/test/suites/invalid/lone-open-brace/error
    avro/trunk/lang/c/jansson/test/suites/invalid/lone-open-brace/input
    avro/trunk/lang/c/jansson/test/suites/invalid/lone-open-bracket/
    avro/trunk/lang/c/jansson/test/suites/invalid/lone-open-bracket/error
    avro/trunk/lang/c/jansson/test/suites/invalid/lone-open-bracket/input
    avro/trunk/lang/c/jansson/test/suites/invalid/lone-second-surrogate/
    avro/trunk/lang/c/jansson/test/suites/invalid/lone-second-surrogate/error
    avro/trunk/lang/c/jansson/test/suites/invalid/lone-second-surrogate/input
    avro/trunk/lang/c/jansson/test/suites/invalid/minus-sign-without-number/
    avro/trunk/lang/c/jansson/test/suites/invalid/minus-sign-without-number/error
    avro/trunk/lang/c/jansson/test/suites/invalid/minus-sign-without-number/input
    avro/trunk/lang/c/jansson/test/suites/invalid/negative-integer-starting-with-zero/
    avro/trunk/lang/c/jansson/test/suites/invalid/negative-integer-starting-with-zero/error
    avro/trunk/lang/c/jansson/test/suites/invalid/negative-integer-starting-with-zero/input
    avro/trunk/lang/c/jansson/test/suites/invalid/null/
    avro/trunk/lang/c/jansson/test/suites/invalid/null-byte-in-string/
    avro/trunk/lang/c/jansson/test/suites/invalid/null-byte-in-string/error
    avro/trunk/lang/c/jansson/test/suites/invalid/null-byte-outside-string/
    avro/trunk/lang/c/jansson/test/suites/invalid/null-byte-outside-string/error
    avro/trunk/lang/c/jansson/test/suites/invalid/null/error
    avro/trunk/lang/c/jansson/test/suites/invalid/null/input
    avro/trunk/lang/c/jansson/test/suites/invalid/object-apostrophes/
    avro/trunk/lang/c/jansson/test/suites/invalid/object-apostrophes/error
    avro/trunk/lang/c/jansson/test/suites/invalid/object-apostrophes/input
    avro/trunk/lang/c/jansson/test/suites/invalid/object-garbage-at-end/
    avro/trunk/lang/c/jansson/test/suites/invalid/object-garbage-at-end/error
    avro/trunk/lang/c/jansson/test/suites/invalid/object-garbage-at-end/input
    avro/trunk/lang/c/jansson/test/suites/invalid/object-in-unterminated-array/
    avro/trunk/lang/c/jansson/test/suites/invalid/object-in-unterminated-array/error
    avro/trunk/lang/c/jansson/test/suites/invalid/object-in-unterminated-array/input
    avro/trunk/lang/c/jansson/test/suites/invalid/object-no-colon/
    avro/trunk/lang/c/jansson/test/suites/invalid/object-no-colon/error
    avro/trunk/lang/c/jansson/test/suites/invalid/object-no-colon/input
    avro/trunk/lang/c/jansson/test/suites/invalid/object-no-value/
    avro/trunk/lang/c/jansson/test/suites/invalid/object-no-value/error
    avro/trunk/lang/c/jansson/test/suites/invalid/object-no-value/input
    avro/trunk/lang/c/jansson/test/suites/invalid/object-unterminated-value/
    avro/trunk/lang/c/jansson/test/suites/invalid/object-unterminated-value/error
    avro/trunk/lang/c/jansson/test/suites/invalid/object-unterminated-value/input
    avro/trunk/lang/c/jansson/test/suites/invalid/real-garbage-after-e/
    avro/trunk/lang/c/jansson/test/suites/invalid/real-garbage-after-e/error
    avro/trunk/lang/c/jansson/test/suites/invalid/real-garbage-after-e/input
    avro/trunk/lang/c/jansson/test/suites/invalid/real-negative-overflow/
    avro/trunk/lang/c/jansson/test/suites/invalid/real-negative-overflow/error
    avro/trunk/lang/c/jansson/test/suites/invalid/real-negative-overflow/input
    avro/trunk/lang/c/jansson/test/suites/invalid/real-positive-overflow/
    avro/trunk/lang/c/jansson/test/suites/invalid/real-positive-overflow/error
    avro/trunk/lang/c/jansson/test/suites/invalid/real-positive-overflow/input
    avro/trunk/lang/c/jansson/test/suites/invalid/real-truncated-at-e/
    avro/trunk/lang/c/jansson/test/suites/invalid/real-truncated-at-e/error
    avro/trunk/lang/c/jansson/test/suites/invalid/real-truncated-at-e/input
    avro/trunk/lang/c/jansson/test/suites/invalid/real-truncated-at-point/
    avro/trunk/lang/c/jansson/test/suites/invalid/real-truncated-at-point/error
    avro/trunk/lang/c/jansson/test/suites/invalid/real-truncated-at-point/input
    avro/trunk/lang/c/jansson/test/suites/invalid/run
    avro/trunk/lang/c/jansson/test/suites/invalid/tab-character-in-string/
    avro/trunk/lang/c/jansson/test/suites/invalid/tab-character-in-string/error
    avro/trunk/lang/c/jansson/test/suites/invalid/tab-character-in-string/input
    avro/trunk/lang/c/jansson/test/suites/invalid/too-big-negative-integer/
    avro/trunk/lang/c/jansson/test/suites/invalid/too-big-negative-integer/error
    avro/trunk/lang/c/jansson/test/suites/invalid/too-big-negative-integer/input
    avro/trunk/lang/c/jansson/test/suites/invalid/too-big-positive-integer/
    avro/trunk/lang/c/jansson/test/suites/invalid/too-big-positive-integer/error
    avro/trunk/lang/c/jansson/test/suites/invalid/too-big-positive-integer/input
    avro/trunk/lang/c/jansson/test/suites/invalid/truncated-unicode-surrogate/
    avro/trunk/lang/c/jansson/test/suites/invalid/truncated-unicode-surrogate/error
    avro/trunk/lang/c/jansson/test/suites/invalid/truncated-unicode-surrogate/input
    avro/trunk/lang/c/jansson/test/suites/invalid/unicode-identifier/
    avro/trunk/lang/c/jansson/test/suites/invalid/unicode-identifier/error
    avro/trunk/lang/c/jansson/test/suites/invalid/unicode-identifier/input
    avro/trunk/lang/c/jansson/test/suites/invalid/unterminated-array/
    avro/trunk/lang/c/jansson/test/suites/invalid/unterminated-array-and-object/
    avro/trunk/lang/c/jansson/test/suites/invalid/unterminated-array-and-object/error
    avro/trunk/lang/c/jansson/test/suites/invalid/unterminated-array-and-object/input
    avro/trunk/lang/c/jansson/test/suites/invalid/unterminated-array/error
    avro/trunk/lang/c/jansson/test/suites/invalid/unterminated-array/input
    avro/trunk/lang/c/jansson/test/suites/invalid/unterminated-empty-key/
    avro/trunk/lang/c/jansson/test/suites/invalid/unterminated-empty-key/error
    avro/trunk/lang/c/jansson/test/suites/invalid/unterminated-empty-key/input
    avro/trunk/lang/c/jansson/test/suites/invalid/unterminated-key/
    avro/trunk/lang/c/jansson/test/suites/invalid/unterminated-key/error
    avro/trunk/lang/c/jansson/test/suites/invalid/unterminated-key/input
    avro/trunk/lang/c/jansson/test/suites/invalid/unterminated-object-and-array/
    avro/trunk/lang/c/jansson/test/suites/invalid/unterminated-object-and-array/error
    avro/trunk/lang/c/jansson/test/suites/invalid/unterminated-object-and-array/input
    avro/trunk/lang/c/jansson/test/suites/invalid/unterminated-string/
    avro/trunk/lang/c/jansson/test/suites/invalid/unterminated-string/error
    avro/trunk/lang/c/jansson/test/suites/invalid/unterminated-string/input
    avro/trunk/lang/c/jansson/test/suites/valid/
    avro/trunk/lang/c/jansson/test/suites/valid-strip/
    avro/trunk/lang/c/jansson/test/suites/valid-strip/complex-array/
    avro/trunk/lang/c/jansson/test/suites/valid-strip/complex-array/input
    avro/trunk/lang/c/jansson/test/suites/valid-strip/complex-array/output
    avro/trunk/lang/c/jansson/test/suites/valid-strip/empty-array/
    avro/trunk/lang/c/jansson/test/suites/valid-strip/empty-array/input
    avro/trunk/lang/c/jansson/test/suites/valid-strip/empty-array/output
    avro/trunk/lang/c/jansson/test/suites/valid-strip/empty-object/
    avro/trunk/lang/c/jansson/test/suites/valid-strip/empty-object-in-array/
    avro/trunk/lang/c/jansson/test/suites/valid-strip/empty-object-in-array/input
    avro/trunk/lang/c/jansson/test/suites/valid-strip/empty-object-in-array/output
    avro/trunk/lang/c/jansson/test/suites/valid-strip/empty-object/input
    avro/trunk/lang/c/jansson/test/suites/valid-strip/empty-object/output
    avro/trunk/lang/c/jansson/test/suites/valid-strip/empty-string/
    avro/trunk/lang/c/jansson/test/suites/valid-strip/empty-string/input
    avro/trunk/lang/c/jansson/test/suites/valid-strip/empty-string/output
    avro/trunk/lang/c/jansson/test/suites/valid-strip/escaped-utf-control-char/
    avro/trunk/lang/c/jansson/test/suites/valid-strip/escaped-utf-control-char/input
    avro/trunk/lang/c/jansson/test/suites/valid-strip/escaped-utf-control-char/output
    avro/trunk/lang/c/jansson/test/suites/valid-strip/false/
    avro/trunk/lang/c/jansson/test/suites/valid-strip/false/input
    avro/trunk/lang/c/jansson/test/suites/valid-strip/false/output
    avro/trunk/lang/c/jansson/test/suites/valid-strip/negative-int/
    avro/trunk/lang/c/jansson/test/suites/valid-strip/negative-int/input
    avro/trunk/lang/c/jansson/test/suites/valid-strip/negative-int/output
    avro/trunk/lang/c/jansson/test/suites/valid-strip/negative-one/
    avro/trunk/lang/c/jansson/test/suites/valid-strip/negative-one/input
    avro/trunk/lang/c/jansson/test/suites/valid-strip/negative-one/output
    avro/trunk/lang/c/jansson/test/suites/valid-strip/negative-zero/
    avro/trunk/lang/c/jansson/test/suites/valid-strip/negative-zero/input
    avro/trunk/lang/c/jansson/test/suites/valid-strip/negative-zero/output
    avro/trunk/lang/c/jansson/test/suites/valid-strip/null/
    avro/trunk/lang/c/jansson/test/suites/valid-strip/null/input
    avro/trunk/lang/c/jansson/test/suites/valid-strip/null/output
    avro/trunk/lang/c/jansson/test/suites/valid-strip/one-byte-utf-8/
    avro/trunk/lang/c/jansson/test/suites/valid-strip/one-byte-utf-8/input
    avro/trunk/lang/c/jansson/test/suites/valid-strip/one-byte-utf-8/output
    avro/trunk/lang/c/jansson/test/suites/valid-strip/real-capital-e/
    avro/trunk/lang/c/jansson/test/suites/valid-strip/real-capital-e-negative-exponent/
    avro/trunk/lang/c/jansson/test/suites/valid-strip/real-capital-e-negative-exponent/input
    avro/trunk/lang/c/jansson/test/suites/valid-strip/real-capital-e-negative-exponent/output
    avro/trunk/lang/c/jansson/test/suites/valid-strip/real-capital-e-positive-exponent/
    avro/trunk/lang/c/jansson/test/suites/valid-strip/real-capital-e-positive-exponent/input
    avro/trunk/lang/c/jansson/test/suites/valid-strip/real-capital-e-positive-exponent/output
    avro/trunk/lang/c/jansson/test/suites/valid-strip/real-capital-e/input
    avro/trunk/lang/c/jansson/test/suites/valid-strip/real-capital-e/output
    avro/trunk/lang/c/jansson/test/suites/valid-strip/real-exponent/
    avro/trunk/lang/c/jansson/test/suites/valid-strip/real-exponent/input
    avro/trunk/lang/c/jansson/test/suites/valid-strip/real-exponent/output
    avro/trunk/lang/c/jansson/test/suites/valid-strip/real-fraction-exponent/
    avro/trunk/lang/c/jansson/test/suites/valid-strip/real-fraction-exponent/input
    avro/trunk/lang/c/jansson/test/suites/valid-strip/real-fraction-exponent/output
    avro/trunk/lang/c/jansson/test/suites/valid-strip/real-negative-exponent/
    avro/trunk/lang/c/jansson/test/suites/valid-strip/real-negative-exponent/input
    avro/trunk/lang/c/jansson/test/suites/valid-strip/real-negative-exponent/output
    avro/trunk/lang/c/jansson/test/suites/valid-strip/real-positive-exponent/
    avro/trunk/lang/c/jansson/test/suites/valid-strip/real-positive-exponent/input
    avro/trunk/lang/c/jansson/test/suites/valid-strip/real-positive-exponent/output
    avro/trunk/lang/c/jansson/test/suites/valid-strip/real-underflow/
    avro/trunk/lang/c/jansson/test/suites/valid-strip/real-underflow/input
    avro/trunk/lang/c/jansson/test/suites/valid-strip/real-underflow/output
    avro/trunk/lang/c/jansson/test/suites/valid-strip/run
    avro/trunk/lang/c/jansson/test/suites/valid-strip/short-string/
    avro/trunk/lang/c/jansson/test/suites/valid-strip/short-string/input
    avro/trunk/lang/c/jansson/test/suites/valid-strip/short-string/output
    avro/trunk/lang/c/jansson/test/suites/valid-strip/simple-ascii-string/
    avro/trunk/lang/c/jansson/test/suites/valid-strip/simple-ascii-string/input
    avro/trunk/lang/c/jansson/test/suites/valid-strip/simple-ascii-string/output
    avro/trunk/lang/c/jansson/test/suites/valid-strip/simple-int-0/
    avro/trunk/lang/c/jansson/test/suites/valid-strip/simple-int-0/input
    avro/trunk/lang/c/jansson/test/suites/valid-strip/simple-int-0/output
    avro/trunk/lang/c/jansson/test/suites/valid-strip/simple-int-1/
    avro/trunk/lang/c/jansson/test/suites/valid-strip/simple-int-1/input
    avro/trunk/lang/c/jansson/test/suites/valid-strip/simple-int-1/output
    avro/trunk/lang/c/jansson/test/suites/valid-strip/simple-int-123/
    avro/trunk/lang/c/jansson/test/suites/valid-strip/simple-int-123/input
    avro/trunk/lang/c/jansson/test/suites/valid-strip/simple-int-123/output
    avro/trunk/lang/c/jansson/test/suites/valid-strip/simple-object/
    avro/trunk/lang/c/jansson/test/suites/valid-strip/simple-object/input
    avro/trunk/lang/c/jansson/test/suites/valid-strip/simple-object/output
    avro/trunk/lang/c/jansson/test/suites/valid-strip/simple-real/
    avro/trunk/lang/c/jansson/test/suites/valid-strip/simple-real/input
    avro/trunk/lang/c/jansson/test/suites/valid-strip/simple-real/output
    avro/trunk/lang/c/jansson/test/suites/valid-strip/string-escapes/
    avro/trunk/lang/c/jansson/test/suites/valid-strip/string-escapes/input
    avro/trunk/lang/c/jansson/test/suites/valid-strip/string-escapes/output
    avro/trunk/lang/c/jansson/test/suites/valid-strip/three-byte-utf-8/
    avro/trunk/lang/c/jansson/test/suites/valid-strip/three-byte-utf-8/input
    avro/trunk/lang/c/jansson/test/suites/valid-strip/three-byte-utf-8/output
    avro/trunk/lang/c/jansson/test/suites/valid-strip/true/
    avro/trunk/lang/c/jansson/test/suites/valid-strip/true/input
    avro/trunk/lang/c/jansson/test/suites/valid-strip/true/output
    avro/trunk/lang/c/jansson/test/suites/valid-strip/two-byte-utf-8/
    avro/trunk/lang/c/jansson/test/suites/valid-strip/two-byte-utf-8/input
    avro/trunk/lang/c/jansson/test/suites/valid-strip/two-byte-utf-8/output
    avro/trunk/lang/c/jansson/test/suites/valid-strip/utf-8-string/
    avro/trunk/lang/c/jansson/test/suites/valid-strip/utf-8-string/input
    avro/trunk/lang/c/jansson/test/suites/valid-strip/utf-8-string/output
    avro/trunk/lang/c/jansson/test/suites/valid-strip/utf-surrogate-four-byte-encoding/
    avro/trunk/lang/c/jansson/test/suites/valid-strip/utf-surrogate-four-byte-encoding/input
    avro/trunk/lang/c/jansson/test/suites/valid-strip/utf-surrogate-four-byte-encoding/output
    avro/trunk/lang/c/jansson/test/suites/valid/complex-array/
    avro/trunk/lang/c/jansson/test/suites/valid/complex-array/input
    avro/trunk/lang/c/jansson/test/suites/valid/complex-array/output
    avro/trunk/lang/c/jansson/test/suites/valid/empty-array/
    avro/trunk/lang/c/jansson/test/suites/valid/empty-array/input
    avro/trunk/lang/c/jansson/test/suites/valid/empty-array/output
    avro/trunk/lang/c/jansson/test/suites/valid/empty-object/
    avro/trunk/lang/c/jansson/test/suites/valid/empty-object-in-array/
    avro/trunk/lang/c/jansson/test/suites/valid/empty-object-in-array/input
    avro/trunk/lang/c/jansson/test/suites/valid/empty-object-in-array/output
    avro/trunk/lang/c/jansson/test/suites/valid/empty-object/input
    avro/trunk/lang/c/jansson/test/suites/valid/empty-object/output
    avro/trunk/lang/c/jansson/test/suites/valid/empty-string/
    avro/trunk/lang/c/jansson/test/suites/valid/empty-string/input
    avro/trunk/lang/c/jansson/test/suites/valid/empty-string/output
    avro/trunk/lang/c/jansson/test/suites/valid/escaped-utf-control-char/
    avro/trunk/lang/c/jansson/test/suites/valid/escaped-utf-control-char/input
    avro/trunk/lang/c/jansson/test/suites/valid/escaped-utf-control-char/output
    avro/trunk/lang/c/jansson/test/suites/valid/false/
    avro/trunk/lang/c/jansson/test/suites/valid/false/input
    avro/trunk/lang/c/jansson/test/suites/valid/false/output
    avro/trunk/lang/c/jansson/test/suites/valid/negative-int/
    avro/trunk/lang/c/jansson/test/suites/valid/negative-int/input
    avro/trunk/lang/c/jansson/test/suites/valid/negative-int/output
    avro/trunk/lang/c/jansson/test/suites/valid/negative-one/
    avro/trunk/lang/c/jansson/test/suites/valid/negative-one/input
    avro/trunk/lang/c/jansson/test/suites/valid/negative-one/output
    avro/trunk/lang/c/jansson/test/suites/valid/negative-zero/
    avro/trunk/lang/c/jansson/test/suites/valid/negative-zero/input
    avro/trunk/lang/c/jansson/test/suites/valid/negative-zero/output
    avro/trunk/lang/c/jansson/test/suites/valid/null/
    avro/trunk/lang/c/jansson/test/suites/valid/null/input
    avro/trunk/lang/c/jansson/test/suites/valid/null/output
    avro/trunk/lang/c/jansson/test/suites/valid/one-byte-utf-8/
    avro/trunk/lang/c/jansson/test/suites/valid/one-byte-utf-8/input
    avro/trunk/lang/c/jansson/test/suites/valid/one-byte-utf-8/output
    avro/trunk/lang/c/jansson/test/suites/valid/real-capital-e/
    avro/trunk/lang/c/jansson/test/suites/valid/real-capital-e-negative-exponent/
    avro/trunk/lang/c/jansson/test/suites/valid/real-capital-e-negative-exponent/input
    avro/trunk/lang/c/jansson/test/suites/valid/real-capital-e-negative-exponent/output
    avro/trunk/lang/c/jansson/test/suites/valid/real-capital-e-positive-exponent/
    avro/trunk/lang/c/jansson/test/suites/valid/real-capital-e-positive-exponent/input
    avro/trunk/lang/c/jansson/test/suites/valid/real-capital-e-positive-exponent/output
    avro/trunk/lang/c/jansson/test/suites/valid/real-capital-e/input
    avro/trunk/lang/c/jansson/test/suites/valid/real-capital-e/output
    avro/trunk/lang/c/jansson/test/suites/valid/real-exponent/
    avro/trunk/lang/c/jansson/test/suites/valid/real-exponent/input
    avro/trunk/lang/c/jansson/test/suites/valid/real-exponent/output
    avro/trunk/lang/c/jansson/test/suites/valid/real-fraction-exponent/
    avro/trunk/lang/c/jansson/test/suites/valid/real-fraction-exponent/input
    avro/trunk/lang/c/jansson/test/suites/valid/real-fraction-exponent/output
    avro/trunk/lang/c/jansson/test/suites/valid/real-negative-exponent/
    avro/trunk/lang/c/jansson/test/suites/valid/real-negative-exponent/input
    avro/trunk/lang/c/jansson/test/suites/valid/real-negative-exponent/output
    avro/trunk/lang/c/jansson/test/suites/valid/real-positive-exponent/
    avro/trunk/lang/c/jansson/test/suites/valid/real-positive-exponent/input
    avro/trunk/lang/c/jansson/test/suites/valid/real-positive-exponent/output
    avro/trunk/lang/c/jansson/test/suites/valid/real-underflow/
    avro/trunk/lang/c/jansson/test/suites/valid/real-underflow/input
    avro/trunk/lang/c/jansson/test/suites/valid/real-underflow/output
    avro/trunk/lang/c/jansson/test/suites/valid/run
    avro/trunk/lang/c/jansson/test/suites/valid/short-string/
    avro/trunk/lang/c/jansson/test/suites/valid/short-string/input
    avro/trunk/lang/c/jansson/test/suites/valid/short-string/output
    avro/trunk/lang/c/jansson/test/suites/valid/simple-ascii-string/
    avro/trunk/lang/c/jansson/test/suites/valid/simple-ascii-string/input
    avro/trunk/lang/c/jansson/test/suites/valid/simple-ascii-string/output
    avro/trunk/lang/c/jansson/test/suites/valid/simple-int-0/
    avro/trunk/lang/c/jansson/test/suites/valid/simple-int-0/input
    avro/trunk/lang/c/jansson/test/suites/valid/simple-int-0/output
    avro/trunk/lang/c/jansson/test/suites/valid/simple-int-1/
    avro/trunk/lang/c/jansson/test/suites/valid/simple-int-1/input
    avro/trunk/lang/c/jansson/test/suites/valid/simple-int-1/output
    avro/trunk/lang/c/jansson/test/suites/valid/simple-int-123/
    avro/trunk/lang/c/jansson/test/suites/valid/simple-int-123/input
    avro/trunk/lang/c/jansson/test/suites/valid/simple-int-123/output
    avro/trunk/lang/c/jansson/test/suites/valid/simple-object/
    avro/trunk/lang/c/jansson/test/suites/valid/simple-object/input
    avro/trunk/lang/c/jansson/test/suites/valid/simple-object/output
    avro/trunk/lang/c/jansson/test/suites/valid/simple-real/
    avro/trunk/lang/c/jansson/test/suites/valid/simple-real/input
    avro/trunk/lang/c/jansson/test/suites/valid/simple-real/output
    avro/trunk/lang/c/jansson/test/suites/valid/string-escapes/
    avro/trunk/lang/c/jansson/test/suites/valid/string-escapes/input
    avro/trunk/lang/c/jansson/test/suites/valid/string-escapes/output
    avro/trunk/lang/c/jansson/test/suites/valid/three-byte-utf-8/
    avro/trunk/lang/c/jansson/test/suites/valid/three-byte-utf-8/input
    avro/trunk/lang/c/jansson/test/suites/valid/three-byte-utf-8/output
    avro/trunk/lang/c/jansson/test/suites/valid/true/
    avro/trunk/lang/c/jansson/test/suites/valid/true/input
    avro/trunk/lang/c/jansson/test/suites/valid/true/output
    avro/trunk/lang/c/jansson/test/suites/valid/two-byte-utf-8/
    avro/trunk/lang/c/jansson/test/suites/valid/two-byte-utf-8/input
    avro/trunk/lang/c/jansson/test/suites/valid/two-byte-utf-8/output
    avro/trunk/lang/c/jansson/test/suites/valid/utf-8-string/
    avro/trunk/lang/c/jansson/test/suites/valid/utf-8-string/input
    avro/trunk/lang/c/jansson/test/suites/valid/utf-8-string/output
    avro/trunk/lang/c/jansson/test/suites/valid/utf-surrogate-four-byte-encoding/
    avro/trunk/lang/c/jansson/test/suites/valid/utf-surrogate-four-byte-encoding/input
    avro/trunk/lang/c/jansson/test/suites/valid/utf-surrogate-four-byte-encoding/output

Added: avro/trunk/lang/c/jansson/test/suites/Makefile.am
URL: http://svn.apache.org/viewvc/avro/trunk/lang/c/jansson/test/suites/Makefile.am?rev=1057727&view=auto
==============================================================================
--- avro/trunk/lang/c/jansson/test/suites/Makefile.am (added)
+++ avro/trunk/lang/c/jansson/test/suites/Makefile.am Tue Jan 11 16:50:35 2011
@@ -0,0 +1,2 @@
+SUBDIRS = api
+EXTRA_DIST = invalid invalid-strip invalid-unicode valid valid-strip

Added: avro/trunk/lang/c/jansson/test/suites/api/Makefile.am
URL: http://svn.apache.org/viewvc/avro/trunk/lang/c/jansson/test/suites/api/Makefile.am?rev=1057727&view=auto
==============================================================================
--- avro/trunk/lang/c/jansson/test/suites/api/Makefile.am (added)
+++ avro/trunk/lang/c/jansson/test/suites/api/Makefile.am Tue Jan 11 16:50:35 2011
@@ -0,0 +1,24 @@
+EXTRA_DIST = run
+
+check_PROGRAMS = \
+	test_array \
+	test_equal \
+	test_copy \
+	test_dump \
+	test_load \
+	test_simple \
+	test_number \
+	test_object
+
+test_array_SOURCES = test_array.c util.h
+test_copy_SOURCES = test_copy.c util.h
+test_dump_SOURCES = test_dump.c util.h
+test_load_SOURCES = test_load.c util.h
+test_simple_SOURCES = test_simple.c util.h
+test_number_SOURCES = test_number.c util.h
+test_object_SOURCES = test_object.c util.h
+
+AM_CPPFLAGS = -I$(top_srcdir)/src
+AM_CFLAGS = -Wall -Werror
+LDFLAGS = -static  # for speed and Valgrind
+LDADD = $(top_builddir)/src/libjansson.la

Added: avro/trunk/lang/c/jansson/test/suites/api/run
URL: http://svn.apache.org/viewvc/avro/trunk/lang/c/jansson/test/suites/api/run?rev=1057727&view=auto
==============================================================================
--- avro/trunk/lang/c/jansson/test/suites/api/run (added)
+++ avro/trunk/lang/c/jansson/test/suites/api/run Tue Jan 11 16:50:35 2011
@@ -0,0 +1,36 @@
+#!/bin/sh
+#
+# Copyright (c) 2009, 2010 Petri Lehtinen <petri@digip.org>
+#
+# Jansson is free software; you can redistribute it and/or modify
+# it under the terms of the MIT license. See LICENSE for details.
+
+is_test() {
+    case "$test_name" in
+        *.c|check-exports)
+            return 0
+            ;;
+        *)
+            return 1
+            ;;
+    esac
+}
+
+run_test() {
+    if [ "$test_name" = "check-exports" ]; then
+        test_log=$test_log $test_path >$test_log/stdout 2>$test_log/stderr
+    else
+        $test_runner $suite_builddir/${test_name%.c} \
+            >$test_log/stdout \
+            2>$test_log/stderr \
+            || return 1
+        valgrind_check $test_log/stderr || return 1
+    fi
+}
+
+show_error() {
+    valgrind_show_error && return
+    cat $test_log/stderr
+}
+
+. $top_srcdir/test/scripts/run-tests.sh

Added: avro/trunk/lang/c/jansson/test/suites/api/test_array.c
URL: http://svn.apache.org/viewvc/avro/trunk/lang/c/jansson/test/suites/api/test_array.c?rev=1057727&view=auto
==============================================================================
--- avro/trunk/lang/c/jansson/test/suites/api/test_array.c (added)
+++ avro/trunk/lang/c/jansson/test/suites/api/test_array.c Tue Jan 11 16:50:35 2011
@@ -0,0 +1,400 @@
+/*
+ * Copyright (c) 2009, 2010 Petri Lehtinen <petri@digip.org>
+ *
+ * Jansson is free software; you can redistribute it and/or modify
+ * it under the terms of the MIT license. See LICENSE for details.
+ */
+
+#include <jansson.h>
+#include "util.h"
+
+static void test_misc(void)
+{
+    json_t *array, *five, *seven, *value;
+    int i;
+
+    array = json_array();
+    five = json_integer(5);
+    seven = json_integer(7);
+
+    if(!array)
+        fail("unable to create array");
+    if(!five || !seven)
+        fail("unable to create integer");
+
+    if(json_array_size(array) != 0)
+        fail("empty array has nonzero size");
+
+    if(!json_array_append(array, NULL))
+        fail("able to append NULL");
+
+    if(json_array_append(array, five))
+        fail("unable to append");
+
+    if(json_array_size(array) != 1)
+        fail("wrong array size");
+
+    value = json_array_get(array, 0);
+    if(!value)
+        fail("unable to get item");
+    if(value != five)
+        fail("got wrong value");
+
+    if(json_array_append(array, seven))
+        fail("unable to append value");
+
+    if(json_array_size(array) != 2)
+        fail("wrong array size");
+
+    value = json_array_get(array, 1);
+    if(!value)
+        fail("unable to get item");
+    if(value != seven)
+        fail("got wrong value");
+
+    if(json_array_set(array, 0, seven))
+        fail("unable to set value");
+
+    if(!json_array_set(array, 0, NULL))
+        fail("able to set NULL");
+
+    if(json_array_size(array) != 2)
+        fail("wrong array size");
+
+    value = json_array_get(array, 0);
+    if(!value)
+        fail("unable to get item");
+    if(value != seven)
+        fail("got wrong value");
+
+    if(json_array_get(array, 2) != NULL)
+        fail("able to get value out of bounds");
+
+    if(!json_array_set(array, 2, seven))
+        fail("able to set value out of bounds");
+
+    for(i = 2; i < 30; i++) {
+        if(json_array_append(array, seven))
+            fail("unable to append value");
+
+        if(json_array_size(array) != i + 1)
+            fail("wrong array size");
+    }
+
+    for(i = 0; i < 30; i++) {
+        value = json_array_get(array, i);
+        if(!value)
+            fail("unable to get item");
+        if(value != seven)
+            fail("got wrong value");
+    }
+
+    if(json_array_set_new(array, 15, json_integer(123)))
+        fail("unable to set new value");
+
+    value = json_array_get(array, 15);
+    if(!json_is_integer(value) || json_integer_value(value) != 123)
+        fail("json_array_set_new works incorrectly");
+
+    if(!json_array_set_new(array, 15, NULL))
+        fail("able to set_new NULL value");
+
+    if(json_array_append_new(array, json_integer(321)))
+        fail("unable to append new value");
+
+    value = json_array_get(array, json_array_size(array) - 1);
+    if(!json_is_integer(value) || json_integer_value(value) != 321)
+        fail("json_array_append_new works incorrectly");
+
+    if(!json_array_append_new(array, NULL))
+        fail("able to append_new NULL value");
+
+    json_decref(five);
+    json_decref(seven);
+    json_decref(array);
+}
+
+static void test_insert(void)
+{
+    json_t *array, *five, *seven, *eleven, *value;
+    int i;
+
+    array = json_array();
+    five = json_integer(5);
+    seven = json_integer(7);
+    eleven = json_integer(11);
+
+    if(!array)
+        fail("unable to create array");
+    if(!five || !seven || !eleven)
+        fail("unable to create integer");
+
+
+    if(!json_array_insert(array, 1, five))
+        fail("able to insert value out of bounds");
+
+
+    if(json_array_insert(array, 0, five))
+        fail("unable to insert value in an empty array");
+
+    if(json_array_get(array, 0) != five)
+        fail("json_array_insert works incorrectly");
+
+    if(json_array_size(array) != 1)
+        fail("array size is invalid after insertion");
+
+
+    if(json_array_insert(array, 1, seven))
+        fail("unable to insert value at the end of an array");
+
+    if(json_array_get(array, 0) != five)
+        fail("json_array_insert works incorrectly");
+
+    if(json_array_get(array, 1) != seven)
+        fail("json_array_insert works incorrectly");
+
+    if(json_array_size(array) != 2)
+        fail("array size is invalid after insertion");
+
+
+    if(json_array_insert(array, 1, eleven))
+        fail("unable to insert value in the middle of an array");
+
+    if(json_array_get(array, 0) != five)
+        fail("json_array_insert works incorrectly");
+
+    if(json_array_get(array, 1) != eleven)
+        fail("json_array_insert works incorrectly");
+
+    if(json_array_get(array, 2) != seven)
+        fail("json_array_insert works incorrectly");
+
+    if(json_array_size(array) != 3)
+        fail("array size is invalid after insertion");
+
+
+    if(json_array_insert_new(array, 2, json_integer(123)))
+        fail("unable to insert value in the middle of an array");
+
+    value = json_array_get(array, 2);
+    if(!json_is_integer(value) || json_integer_value(value) != 123)
+        fail("json_array_insert_new works incorrectly");
+
+    if(json_array_size(array) != 4)
+        fail("array size is invalid after insertion");
+
+
+    for(i = 0; i < 20; i++) {
+        if(json_array_insert(array, 0, seven))
+            fail("unable to insert value at the begining of an array");
+    }
+
+    for(i = 0; i < 20; i++) {
+        if(json_array_get(array, i) != seven)
+            fail("json_aray_insert works incorrectly");
+    }
+
+    if(json_array_size(array) != 24)
+        fail("array size is invalid after loop insertion");
+
+    json_decref(five);
+    json_decref(seven);
+    json_decref(eleven);
+    json_decref(array);
+}
+
+static void test_remove(void)
+{
+    json_t *array, *five, *seven;
+
+    array = json_array();
+    five = json_integer(5);
+    seven = json_integer(7);
+
+    if(!array)
+        fail("unable to create array");
+    if(!five)
+        fail("unable to create integer");
+    if(!seven)
+        fail("unable to create integer");
+
+
+    if(!json_array_remove(array, 0))
+        fail("able to remove an unexisting index");
+
+
+    if(json_array_append(array, five))
+        fail("unable to append");
+
+    if(!json_array_remove(array, 1))
+        fail("able to remove an unexisting index");
+
+    if(json_array_remove(array, 0))
+        fail("unable to remove");
+
+    if(json_array_size(array) != 0)
+        fail("array size is invalid after removing");
+
+
+    if(json_array_append(array, five) ||
+       json_array_append(array, seven) ||
+       json_array_append(array, five) ||
+       json_array_append(array, seven))
+        fail("unable to append");
+
+    if(json_array_remove(array, 2))
+        fail("unable to remove");
+
+    if(json_array_size(array) != 3)
+        fail("array size is invalid after removing");
+
+    if(json_array_get(array, 0) != five ||
+       json_array_get(array, 1) != seven ||
+       json_array_get(array, 2) != seven)
+        fail("remove works incorrectly");
+
+    json_decref(five);
+    json_decref(seven);
+    json_decref(array);
+}
+
+static void test_clear(void)
+{
+    json_t *array, *five, *seven;
+    int i;
+
+    array = json_array();
+    five = json_integer(5);
+    seven = json_integer(7);
+
+    if(!array)
+        fail("unable to create array");
+    if(!five || !seven)
+        fail("unable to create integer");
+
+    for(i = 0; i < 10; i++) {
+        if(json_array_append(array, five))
+            fail("unable to append");
+    }
+    for(i = 0; i < 10; i++) {
+        if(json_array_append(array, seven))
+            fail("unable to append");
+    }
+
+    if(json_array_size(array) != 20)
+        fail("array size is invalid after appending");
+
+    if(json_array_clear(array))
+        fail("unable to clear");
+
+    if(json_array_size(array) != 0)
+        fail("array size is invalid after clearing");
+
+    json_decref(five);
+    json_decref(seven);
+    json_decref(array);
+}
+
+static void test_extend(void)
+{
+    json_t *array1, *array2, *five, *seven;
+    int i;
+
+    array1 = json_array();
+    array2 = json_array();
+    five = json_integer(5);
+    seven = json_integer(7);
+
+    if(!array1 || !array2)
+        fail("unable to create array");
+    if(!five || !seven)
+        fail("unable to create integer");
+
+    for(i = 0; i < 10; i++) {
+        if(json_array_append(array1, five))
+            fail("unable to append");
+    }
+    for(i = 0; i < 10; i++) {
+        if(json_array_append(array2, seven))
+            fail("unable to append");
+    }
+
+    if(json_array_size(array1) != 10 || json_array_size(array2) != 10)
+        fail("array size is invalid after appending");
+
+    if(json_array_extend(array1, array2))
+        fail("unable to extend");
+
+    for(i = 0; i < 10; i++) {
+        if(json_array_get(array1, i) != five)
+            fail("invalid array contents after extending");
+    }
+    for(i = 10; i < 20; i++) {
+        if(json_array_get(array1, i) != seven)
+            fail("invalid array contents after extending");
+    }
+
+    json_decref(five);
+    json_decref(seven);
+    json_decref(array1);
+    json_decref(array2);
+}
+
+static void test_circular()
+{
+    json_t *array1, *array2;
+
+    /* the simple cases are checked */
+
+    array1 = json_array();
+    if(!array1)
+        fail("unable to create array");
+
+    if(json_array_append(array1, array1) == 0)
+        fail("able to append self");
+
+    if(json_array_insert(array1, 0, array1) == 0)
+        fail("able to insert self");
+
+    if(json_array_append_new(array1, json_true()))
+        fail("failed to append true");
+
+    if(json_array_set(array1, 0, array1) == 0)
+        fail("able to set self");
+
+    json_decref(array1);
+
+
+    /* create circular references */
+
+    array1 = json_array();
+    array2 = json_array();
+    if(!array1 || !array2)
+        fail("unable to create array");
+
+    if(json_array_append(array1, array2) ||
+       json_array_append(array2, array1))
+        fail("unable to append");
+
+    /* circularity is detected when dumping */
+    if(json_dumps(array1, 0) != NULL)
+        fail("able to dump circulars");
+
+    /* decref twice to deal with the circular references */
+    json_decref(array1);
+    json_decref(array2);
+    json_decref(array1);
+}
+
+
+int main()
+{
+    test_misc();
+    test_insert();
+    test_remove();
+    test_clear();
+    test_extend();
+    test_circular();
+
+    return 0;
+}

Added: avro/trunk/lang/c/jansson/test/suites/api/test_copy.c
URL: http://svn.apache.org/viewvc/avro/trunk/lang/c/jansson/test/suites/api/test_copy.c?rev=1057727&view=auto
==============================================================================
--- avro/trunk/lang/c/jansson/test/suites/api/test_copy.c (added)
+++ avro/trunk/lang/c/jansson/test/suites/api/test_copy.c Tue Jan 11 16:50:35 2011
@@ -0,0 +1,319 @@
+/*
+ * Copyright (c) 2009, 2010 Petri Lehtinen <petri@digip.org>
+ *
+ * Jansson is free software; you can redistribute it and/or modify
+ * it under the terms of the MIT license. See LICENSE for details.
+ */
+
+#include <string.h>
+#include <jansson.h>
+#include "util.h"
+
+static void test_copy_simple(void)
+{
+    json_t *value, *copy;
+
+    if(json_copy(NULL))
+        fail("copying NULL doesn't return NULL");
+
+    /* true */
+    value = json_true();
+    copy = json_copy(value);
+    if(value != copy)
+        fail("copying true failed");
+    json_decref(value);
+    json_decref(copy);
+
+    /* false */
+    value = json_false();
+    copy = json_copy(value);
+    if(value != copy)
+        fail("copying false failed");
+    json_decref(value);
+    json_decref(copy);
+
+    /* null */
+    value = json_null();
+    copy = json_copy(value);
+    if(value != copy)
+        fail("copying null failed");
+    json_decref(value);
+    json_decref(copy);
+
+    /* string */
+    value = json_string("foo");
+    if(!value)
+        fail("unable to create a string");
+    copy = json_copy(value);
+    if(!copy)
+        fail("unable to copy a string");
+    if(copy == value)
+        fail("copying a string doesn't copy");
+    if(!json_equal(copy, value))
+        fail("copying a string produces an inequal copy");
+    if(value->refcount != 1 || copy->refcount != 1)
+        fail("invalid refcounts");
+    json_decref(value);
+    json_decref(copy);
+
+    /* integer */
+    value = json_integer(543);
+    if(!value)
+        fail("unable to create an integer");
+    copy = json_copy(value);
+    if(!copy)
+        fail("unable to copy an integer");
+    if(copy == value)
+        fail("copying an integer doesn't copy");
+    if(!json_equal(copy, value))
+        fail("copying an integer produces an inequal copy");
+    if(value->refcount != 1 || copy->refcount != 1)
+        fail("invalid refcounts");
+    json_decref(value);
+    json_decref(copy);
+
+    /* real */
+    value = json_real(123e9);
+    if(!value)
+        fail("unable to create a real");
+    copy = json_copy(value);
+    if(!copy)
+        fail("unable to copy a real");
+    if(copy == value)
+        fail("copying a real doesn't copy");
+    if(!json_equal(copy, value))
+        fail("copying a real produces an inequal copy");
+    if(value->refcount != 1 || copy->refcount != 1)
+        fail("invalid refcounts");
+    json_decref(value);
+    json_decref(copy);
+}
+
+static void test_deep_copy_simple(void)
+{
+    json_t *value, *copy;
+
+    if(json_deep_copy(NULL))
+        fail("deep copying NULL doesn't return NULL");
+
+    /* true */
+    value = json_true();
+    copy = json_deep_copy(value);
+    if(value != copy)
+        fail("deep copying true failed");
+    json_decref(value);
+    json_decref(copy);
+
+    /* false */
+    value = json_false();
+    copy = json_deep_copy(value);
+    if(value != copy)
+        fail("deep copying false failed");
+    json_decref(value);
+    json_decref(copy);
+
+    /* null */
+    value = json_null();
+    copy = json_deep_copy(value);
+    if(value != copy)
+        fail("deep copying null failed");
+    json_decref(value);
+    json_decref(copy);
+
+    /* string */
+    value = json_string("foo");
+    if(!value)
+        fail("unable to create a string");
+    copy = json_deep_copy(value);
+    if(!copy)
+        fail("unable to deep copy a string");
+    if(copy == value)
+        fail("deep copying a string doesn't copy");
+    if(!json_equal(copy, value))
+        fail("deep copying a string produces an inequal copy");
+    if(value->refcount != 1 || copy->refcount != 1)
+        fail("invalid refcounts");
+    json_decref(value);
+    json_decref(copy);
+
+    /* integer */
+    value = json_integer(543);
+    if(!value)
+        fail("unable to create an integer");
+    copy = json_deep_copy(value);
+    if(!copy)
+        fail("unable to deep copy an integer");
+    if(copy == value)
+        fail("deep copying an integer doesn't copy");
+    if(!json_equal(copy, value))
+        fail("deep copying an integer produces an inequal copy");
+    if(value->refcount != 1 || copy->refcount != 1)
+        fail("invalid refcounts");
+    json_decref(value);
+    json_decref(copy);
+
+    /* real */
+    value = json_real(123e9);
+    if(!value)
+        fail("unable to create a real");
+    copy = json_deep_copy(value);
+    if(!copy)
+        fail("unable to deep copy a real");
+    if(copy == value)
+        fail("deep copying a real doesn't copy");
+    if(!json_equal(copy, value))
+        fail("deep copying a real produces an inequal copy");
+    if(value->refcount != 1 || copy->refcount != 1)
+        fail("invalid refcounts");
+    json_decref(value);
+    json_decref(copy);
+}
+
+static void test_copy_array(void)
+{
+    const char *json_array_text = "[1, \"foo\", 3.141592, {\"foo\": \"bar\"}]";
+
+    json_t *array, *copy;
+    unsigned int i;
+
+    array = json_loads(json_array_text, NULL);
+    if(!array)
+        fail("unable to parse an array");
+
+    copy = json_copy(array);
+    if(!copy)
+        fail("unable to copy an array");
+    if(copy == array)
+        fail("copying an array doesn't copy");
+    if(!json_equal(copy, array))
+        fail("copying an array produces an inequal copy");
+
+    for(i = 0; i < json_array_size(copy); i++)
+    {
+        if(json_array_get(array, i) != json_array_get(copy, i))
+            fail("copying an array modifies its elements");
+    }
+
+    json_decref(array);
+    json_decref(copy);
+}
+
+static void test_deep_copy_array(void)
+{
+    const char *json_array_text = "[1, \"foo\", 3.141592, {\"foo\": \"bar\"}]";
+
+    json_t *array, *copy;
+    unsigned int i;
+
+    array = json_loads(json_array_text, NULL);
+    if(!array)
+        fail("unable to parse an array");
+
+    copy = json_deep_copy(array);
+    if(!copy)
+        fail("unable to deep copy an array");
+    if(copy == array)
+        fail("deep copying an array doesn't copy");
+    if(!json_equal(copy, array))
+        fail("deep copying an array produces an inequal copy");
+
+    for(i = 0; i < json_array_size(copy); i++)
+    {
+        if(json_array_get(array, i) == json_array_get(copy, i))
+            fail("deep copying an array doesn't copy its elements");
+    }
+
+    json_decref(array);
+    json_decref(copy);
+}
+
+static void test_copy_object(void)
+{
+    const char *json_object_text =
+        "{\"foo\": \"bar\", \"a\": 1, \"b\": 3.141592, \"c\": [1,2,3,4]}";
+
+    json_t *object, *copy;
+    void *iter;
+
+    object = json_loads(json_object_text, NULL);
+    if(!object)
+        fail("unable to parse an object");
+
+    copy = json_copy(object);
+    if(!copy)
+        fail("unable to copy an object");
+    if(copy == object)
+        fail("copying an object doesn't copy");
+    if(!json_equal(copy, object))
+        fail("copying an object produces an inequal copy");
+
+    iter = json_object_iter(object);
+    while(iter)
+    {
+        const char *key;
+        json_t *value1, *value2;
+
+        key = json_object_iter_key(iter);
+        value1 = json_object_iter_value(iter);
+        value2 = json_object_get(copy, key);
+
+        if(value1 != value2)
+            fail("deep copying an object modifies its items");
+
+        iter = json_object_iter_next(object, iter);
+    }
+
+    json_decref(object);
+    json_decref(copy);
+}
+
+static void test_deep_copy_object(void)
+{
+    const char *json_object_text =
+        "{\"foo\": \"bar\", \"a\": 1, \"b\": 3.141592, \"c\": [1,2,3,4]}";
+
+    json_t *object, *copy;
+    void *iter;
+
+    object = json_loads(json_object_text, NULL);
+    if(!object)
+        fail("unable to parse an object");
+
+    copy = json_deep_copy(object);
+    if(!copy)
+        fail("unable to deep copy an object");
+    if(copy == object)
+        fail("deep copying an object doesn't copy");
+    if(!json_equal(copy, object))
+        fail("deep copying an object produces an inequal copy");
+
+    iter = json_object_iter(object);
+    while(iter)
+    {
+        const char *key;
+        json_t *value1, *value2;
+
+        key = json_object_iter_key(iter);
+        value1 = json_object_iter_value(iter);
+        value2 = json_object_get(copy, key);
+
+        if(value1 == value2)
+            fail("deep copying an object doesn't copy its items");
+
+        iter = json_object_iter_next(object, iter);
+    }
+
+    json_decref(object);
+    json_decref(copy);
+}
+
+int main()
+{
+    test_copy_simple();
+    test_deep_copy_simple();
+    test_copy_array();
+    test_deep_copy_array();
+    test_copy_object();
+    test_deep_copy_object();
+    return 0;
+}

Added: avro/trunk/lang/c/jansson/test/suites/api/test_dump.c
URL: http://svn.apache.org/viewvc/avro/trunk/lang/c/jansson/test/suites/api/test_dump.c?rev=1057727&view=auto
==============================================================================
--- avro/trunk/lang/c/jansson/test/suites/api/test_dump.c (added)
+++ avro/trunk/lang/c/jansson/test/suites/api/test_dump.c Tue Jan 11 16:50:35 2011
@@ -0,0 +1,91 @@
+/*
+ * Copyright (c) 2009, 2010 Petri Lehtinen <petri@digip.org>
+ *
+ * Jansson is free software; you can redistribute it and/or modify
+ * it under the terms of the MIT license. See LICENSE for details.
+ */
+
+#include <jansson.h>
+#include <string.h>
+#include "util.h"
+
+int main()
+{
+    json_t *json;
+    char *result;
+
+    /* Encode an empty object/array, add an item, encode again */
+
+    json = json_object();
+    result = json_dumps(json, 0);
+    if(!result || strcmp(result, "{}"))
+      fail("json_dumps failed");
+    free(result);
+
+    json_object_set_new(json, "foo", json_integer(5));
+    result = json_dumps(json, 0);
+    if(!result || strcmp(result, "{\"foo\": 5}"))
+      fail("json_dumps failed");
+    free(result);
+
+    json_decref(json);
+
+    json = json_array();
+    result = json_dumps(json, 0);
+    if(!result || strcmp(result, "[]"))
+      fail("json_dumps failed");
+    free(result);
+
+    json_array_append_new(json, json_integer(5));
+    result = json_dumps(json, 0);
+    if(!result || strcmp(result, "[5]"))
+      fail("json_dumps failed");
+    free(result);
+
+    json_decref(json);
+
+    /* Construct a JSON object/array with a circular reference:
+
+       object: {"a": {"b": {"c": <circular reference to $.a>}}}
+       array: [[[<circular reference to the $[0] array>]]]
+
+       Encode it, remove the circular reference and encode again.
+    */
+    json = json_object();
+    json_object_set_new(json, "a", json_object());
+    json_object_set_new(json_object_get(json, "a"), "b", json_object());
+    json_object_set(json_object_get(json_object_get(json, "a"), "b"), "c",
+                    json_object_get(json, "a"));
+
+    if(json_dumps(json, 0))
+        fail("json_dumps encoded a circular reference!");
+
+    json_object_del(json_object_get(json_object_get(json, "a"), "b"), "c");
+
+    result = json_dumps(json, 0);
+    if(!result || strcmp(result, "{\"a\": {\"b\": {}}}"))
+        fail("json_dumps failed!");
+    free(result);
+
+    json_decref(json);
+
+    json = json_array();
+    json_array_append_new(json, json_array());
+    json_array_append_new(json_array_get(json, 0), json_array());
+    json_array_append(json_array_get(json_array_get(json, 0), 0),
+                      json_array_get(json, 0));
+
+    if(json_dumps(json, 0))
+        fail("json_dumps encoded a circular reference!");
+
+    json_array_remove(json_array_get(json_array_get(json, 0), 0), 0);
+
+    result = json_dumps(json, 0);
+    if(!result || strcmp(result, "[[[]]]"))
+        fail("json_dumps failed!");
+    free(result);
+
+    json_decref(json);
+
+    return 0;
+}

Added: avro/trunk/lang/c/jansson/test/suites/api/test_equal.c
URL: http://svn.apache.org/viewvc/avro/trunk/lang/c/jansson/test/suites/api/test_equal.c?rev=1057727&view=auto
==============================================================================
--- avro/trunk/lang/c/jansson/test/suites/api/test_equal.c (added)
+++ avro/trunk/lang/c/jansson/test/suites/api/test_equal.c Tue Jan 11 16:50:35 2011
@@ -0,0 +1,190 @@
+/*
+ * Copyright (c) 2009, 2010 Petri Lehtinen <petri@digip.org>
+ *
+ * Jansson is free software; you can redistribute it and/or modify
+ * it under the terms of the MIT license. See LICENSE for details.
+ */
+
+#include <jansson.h>
+#include "util.h"
+
+static void test_equal_simple()
+{
+    json_t *value1, *value2;
+
+    if(json_equal(NULL, NULL))
+        fail("json_equal fails for two NULLs");
+
+    value1 = json_true();
+    if(json_equal(value1, NULL) || json_equal(NULL, value1))
+        fail("json_equal fails for NULL");
+
+    /* this covers true, false and null as they are singletons */
+    if(!json_equal(value1, value1))
+        fail("identical objects are not equal");
+    json_decref(value1);
+
+    /* integer */
+    value1 = json_integer(1);
+    value2 = json_integer(1);
+    if(!value1 || !value2)
+        fail("unable to create integers");
+    if(!json_equal(value1, value2))
+        fail("json_equal fails for two equal integers");
+    json_decref(value2);
+
+    value2 = json_integer(2);
+    if(!value2)
+        fail("unable to create an integer");
+    if(json_equal(value1, value2))
+        fail("json_equal fails for two inequal integers");
+
+    json_decref(value1);
+    json_decref(value2);
+
+    /* real */
+    value1 = json_real(1.2);
+    value2 = json_real(1.2);
+    if(!value1 || !value2)
+        fail("unable to create reals");
+    if(!json_equal(value1, value2))
+        fail("json_equal fails for two equal reals");
+    json_decref(value2);
+
+    value2 = json_real(3.141592);
+    if(!value2)
+        fail("unable to create an real");
+    if(json_equal(value1, value2))
+        fail("json_equal fails for two inequal reals");
+
+    json_decref(value1);
+    json_decref(value2);
+
+    /* string */
+    value1 = json_string("foo");
+    value2 = json_string("foo");
+    if(!value1 || !value2)
+        fail("unable to create strings");
+    if(!json_equal(value1, value2))
+        fail("json_equal fails for two equal strings");
+    json_decref(value2);
+
+    value2 = json_string("bar");
+    if(!value2)
+        fail("unable to create an string");
+    if(json_equal(value1, value2))
+        fail("json_equal fails for two inequal strings");
+
+    json_decref(value1);
+    json_decref(value2);
+}
+
+static void test_equal_array()
+{
+    json_t *array1, *array2;
+
+    array1 = json_array();
+    array2 = json_array();
+    if(!array1 || !array2)
+        fail("unable to create arrays");
+
+    if(!json_equal(array1, array2))
+        fail("json_equal fails for two empty arrays");
+
+    json_array_append_new(array1, json_integer(1));
+    json_array_append_new(array2, json_integer(1));
+    json_array_append_new(array1, json_string("foo"));
+    json_array_append_new(array2, json_string("foo"));
+    json_array_append_new(array1, json_integer(2));
+    json_array_append_new(array2, json_integer(2));
+    if(!json_equal(array1, array2))
+        fail("json_equal fails for two equal arrays");
+
+    json_array_remove(array2, 2);
+    if(json_equal(array1, array2))
+        fail("json_equal fails for two inequal arrays");
+
+    json_array_append_new(array2, json_integer(3));
+    if(json_equal(array1, array2))
+        fail("json_equal fails for two inequal arrays");
+
+    json_decref(array1);
+    json_decref(array2);
+}
+
+static void test_equal_object()
+{
+    json_t *object1, *object2;
+
+    object1 = json_object();
+    object2 = json_object();
+    if(!object1 || !object2)
+        fail("unable to create objects");
+
+    if(!json_equal(object1, object2))
+        fail("json_equal fails for two empty objects");
+
+    json_object_set_new(object1, "a", json_integer(1));
+    json_object_set_new(object2, "a", json_integer(1));
+    json_object_set_new(object1, "b", json_string("foo"));
+    json_object_set_new(object2, "b", json_string("foo"));
+    json_object_set_new(object1, "c", json_integer(2));
+    json_object_set_new(object2, "c", json_integer(2));
+    if(!json_equal(object1, object2))
+        fail("json_equal fails for two equal objects");
+
+    json_object_del(object2, "c");
+    if(json_equal(object1, object2))
+        fail("json_equal fails for two inequal objects");
+
+    json_object_set_new(object2, "c", json_integer(3));
+    if(json_equal(object1, object2))
+        fail("json_equal fails for two inequal objects");
+
+    json_object_del(object2, "c");
+    json_object_set_new(object2, "d", json_integer(2));
+    if(json_equal(object1, object2))
+        fail("json_equal fails for two inequal objects");
+
+    json_decref(object1);
+    json_decref(object2);
+}
+
+static void test_equal_complex()
+{
+    json_t *value1, *value2;
+
+    const char *complex_json =
+"{"
+"    \"integer\": 1, "
+"    \"real\": 3.141592, "
+"    \"string\": \"foobar\", "
+"    \"true\": true, "
+"    \"object\": {"
+"        \"array-in-object\": [1,true,\"foo\",{}],"
+"        \"object-in-object\": {\"foo\": \"bar\"}"
+"    },"
+"    \"array\": [\"foo\", false, null, 1.234]"
+"}";
+
+    value1 = json_loads(complex_json, NULL);
+    value2 = json_loads(complex_json, NULL);
+    if(!value1 || !value2)
+        fail("unable to parse JSON");
+    if(!json_equal(value1, value2))
+        fail("json_equal fails for two inequal strings");
+
+    json_decref(value1);
+    json_decref(value2);
+
+    /* TODO: There's no negative test case here */
+}
+
+int main()
+{
+    test_equal_simple();
+    test_equal_array();
+    test_equal_object();
+    test_equal_complex();
+    return 0;
+}

Added: avro/trunk/lang/c/jansson/test/suites/api/test_load.c
URL: http://svn.apache.org/viewvc/avro/trunk/lang/c/jansson/test/suites/api/test_load.c?rev=1057727&view=auto
==============================================================================
--- avro/trunk/lang/c/jansson/test/suites/api/test_load.c (added)
+++ avro/trunk/lang/c/jansson/test/suites/api/test_load.c Tue Jan 11 16:50:35 2011
@@ -0,0 +1,24 @@
+/*
+ * Copyright (c) 2009, 2010 Petri Lehtinen <petri@digip.org>
+ *
+ * Jansson is free software; you can redistribute it and/or modify
+ * it under the terms of the MIT license. See LICENSE for details.
+ */
+
+#include <jansson.h>
+#include <string.h>
+#include "util.h"
+
+int main()
+{
+    json_t *json;
+    json_error_t error;
+
+    json = json_load_file("/path/to/nonexistent/file.json", &error);
+    if(error.line != -1)
+        fail("json_load_file returned an invalid line number");
+    if(strcmp(error.text, "unable to open /path/to/nonexistent/file.json: No such file or directory") != 0)
+        fail("json_load_file returned an invalid error message");
+
+    return 0;
+}

Added: avro/trunk/lang/c/jansson/test/suites/api/test_number.c
URL: http://svn.apache.org/viewvc/avro/trunk/lang/c/jansson/test/suites/api/test_number.c?rev=1057727&view=auto
==============================================================================
--- avro/trunk/lang/c/jansson/test/suites/api/test_number.c (added)
+++ avro/trunk/lang/c/jansson/test/suites/api/test_number.c Tue Jan 11 16:50:35 2011
@@ -0,0 +1,44 @@
+/*
+ * Copyright (c) 2009, 2010 Petri Lehtinen <petri@digip.org>
+ *
+ * Jansson is free software; you can redistribute it and/or modify
+ * it under the terms of the MIT license. See LICENSE for details.
+ */
+
+#include <jansson.h>
+#include "util.h"
+
+int main()
+{
+    json_t *integer, *real;
+    int i;
+    double d;
+
+    integer = json_integer(5);
+    real = json_real(100.1);
+
+    if(!integer)
+        fail("unable to create integer");
+    if(!real)
+        fail("unable to create real");
+
+    i = json_integer_value(integer);
+    if(i != 5)
+        fail("wrong integer value");
+
+    d = json_real_value(real);
+    if(d != 100.1)
+        fail("wrong real value");
+
+    d = json_number_value(integer);
+    if(d != 5.0)
+        fail("wrong number value");
+    d = json_number_value(real);
+    if(d != 100.1)
+        fail("wrong number value");
+
+    json_decref(integer);
+    json_decref(real);
+
+    return 0;
+}



Mime
View raw message