Sha256: 526dafd466b6c97a45105c5f9a91d48fbd27f6f52ea861376ba321f83808f469

Contents?: true

Size: 1.86 KB

Versions: 71

Compression:

Stored size: 1.86 KB

Contents

{
    "description": "Symbol",
    "bson_type": "0x0E",
    "deprecated": true,
    "test_key": "a",
    "valid": [
        {
            "description": "Empty string",
            "bson": "0D0000000E6100010000000000"
        },
        {
            "description": "Single character",
            "bson": "0E0000000E610002000000620000"
        },
        {
            "description": "Multi-character",
            "bson": "190000000E61000D0000006162616261626162616261620000"
        },
        {
            "description": "two-byte UTF-8 (\u00e9)",
            "bson": "190000000E61000D000000C3A9C3A9C3A9C3A9C3A9C3A90000"
        },
        {
            "description": "three-byte UTF-8 (\u2606)",
            "bson": "190000000E61000D000000E29886E29886E29886E298860000"
        },
        {
            "description": "Embedded nulls",
            "bson": "190000000E61000D0000006162006261620062616261620000"
        }
    ],
    "decodeErrors": [
        {
            "description": "bad symbol length: 0 (but no 0x00 either)",
            "bson": "0C0000000261000000000000"
        },
        {
            "description": "bad symbol length: -1",
            "bson": "0C000000026100FFFFFFFF00"
        },
        {
            "description": "bad symbol length: eats terminator",
            "bson": "10000000026100050000006200620000"
        },
        {
            "description": "bad symbol length: longer than rest of document",
            "bson": "120000000200FFFFFF00666F6F6261720000"
        },
        {
            "description": "symbol is not null-terminated",
            "bson": "1000000002610004000000616263FF00"
        },
        {
            "description": "empty symbol, but extra null",
            "bson": "0E00000002610001000000000000"
        },
        {
            "description": "invalid UTF-8",
            "bson": "0E00000002610002000000E90000"
        }
    ]
}

Version data entries

71 entries across 70 versions & 2 rubygems

Version Path
bson-5.0.2 spec/spec_tests/data/corpus_legacy/failures/symbol.json
bson-5.0.2-java spec/spec_tests/data/corpus_legacy/failures/symbol.json
bson-5.0.1 spec/spec_tests/data/corpus_legacy/failures/symbol.json
bson-5.0.1-java spec/spec_tests/data/corpus_legacy/failures/symbol.json
bson-5.0.0-java spec/spec_tests/data/corpus_legacy/failures/symbol.json
bson-5.0.0 spec/spec_tests/data/corpus_legacy/failures/symbol.json
bson-4.15.0-java spec/spec_tests/data/corpus_legacy/failures/symbol.json
bson-4.15.0 spec/spec_tests/data/corpus_legacy/failures/symbol.json
bson-4.14.1-java spec/spec_tests/data/corpus_legacy/failures/symbol.json
bson-4.14.1 spec/spec_tests/data/corpus_legacy/failures/symbol.json
bson-4.14.0-java spec/spec_tests/data/corpus_legacy/failures/symbol.json
bson-4.14.0 spec/spec_tests/data/corpus_legacy/failures/symbol.json
bson-4.13.0-java spec/spec_tests/data/corpus_legacy/failures/symbol.json
bson-4.13.0 spec/spec_tests/data/corpus_legacy/failures/symbol.json
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/bson-4.12.0/spec/spec_tests/data/corpus_legacy/failures/symbol.json
bson-4.12.1-java spec/spec_tests/data/corpus_legacy/failures/symbol.json
bson-4.12.1 spec/spec_tests/data/corpus_legacy/failures/symbol.json
bson-4.12.0-java spec/spec_tests/data/corpus_legacy/failures/symbol.json
bson-4.12.0 spec/spec_tests/data/corpus_legacy/failures/symbol.json
bson-4.11.1-java spec/spec_tests/data/corpus_legacy/failures/symbol.json