Sha256: e3e072695387192a92dd17c776a1fad62469d24b788c6acfb8f984c5d5a55eda

Contents?: true

Size: 1.45 KB

Versions: 20

Compression:

Stored size: 1.45 KB

Contents

{
    "description": "Array",
    "bson_type": "0x04",
    "test_key": "a",
    "valid": [
        {
            "description": "Empty",
            "bson": "0D000000046100050000000000",
            "extjson": "{\"a\" : []}"
        },
        {
            "description": "Single Element Array",
            "bson": "140000000461000C0000001030000A0000000000",
            "extjson": "{\"a\" : [10]}"
        },
        {
            "description": "Single Element Array with index set incorrectly",
            "bson": "130000000461000B00000010000A0000000000",
            "canonical_bson": "140000000461000C0000001030000A0000000000",
            "extjson": "{\"a\" : [10]}"
        },
        {
            "description": "Single Element Array with index set incorrectly",
            "bson": "150000000461000D000000106162000A0000000000",
            "canonical_bson": "140000000461000C0000001030000A0000000000",
            "extjson": "{\"a\" : [10]}"
        }
    ],
    "decodeErrors": [
        {
            "description": "Array length too long: eats outer terminator",
            "bson": "140000000461000D0000001030000A0000000000"
        },
        {
            "description": "Array length too short: leaks terminator",
            "bson": "140000000461000B0000001030000A0000000000"
        },
        {
            "description": "Invalid Array: bad string length in field",
            "bson": "1A00000004666F6F00100000000230000500000062617A000000"
        }
    ]
}

Version data entries

20 entries across 19 versions & 2 rubygems

Version Path
bson-4.5.0-java spec/support/corpus-tests/array.json
bson-4.5.0 spec/support/corpus-tests/array.json
bson-4.4.2-java spec/support/corpus-tests/array.json
bson-4.4.2 spec/support/corpus-tests/array.json
bson-4.4.1-java spec/support/corpus-tests/array.json
bson-4.4.1 spec/support/corpus-tests/array.json
tdiary-5.0.8 vendor/bundle/gems/bson-4.3.0/spec/support/corpus-tests/array.json
bson-4.3.0-java spec/support/corpus-tests/array.json
bson-4.3.0 spec/support/corpus-tests/array.json
bson-4.3.0.beta spec/support/corpus-tests/array.json
bson-4.3.0.beta-java spec/support/corpus-tests/array.json
bson-4.2.2-java spec/support/corpus-tests/array.json
bson-4.2.2 spec/support/corpus-tests/array.json
tdiary-5.0.5 vendor/bundle/gems/bson-4.2.1/spec/support/corpus-tests/array.json
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/bson-4.2.1/spec/support/corpus-tests/array.json
tdiary-5.0.4 vendor/bundle/gems/bson-4.2.1/spec/support/corpus-tests/array.json
bson-4.2.1-java spec/support/corpus-tests/array.json
bson-4.2.1 spec/support/corpus-tests/array.json
bson-4.2.0-java spec/support/corpus-tests/array.json
bson-4.2.0 spec/support/corpus-tests/array.json