|
20 | 20 | },
|
21 | 21 | {
|
22 | 22 | "description": "two-byte UTF-8 (\u00e9)",
|
23 |
| - "canonical_bson": "190000000261000D000000C3A9C3A9C3A9C3A9C3A9C3A90000", |
24 |
| - "canonical_extjson": "{\"a\" : \"\\u00e9\\u00e9\\u00e9\\u00e9\\u00e9\\u00e9\"}" |
| 23 | + "canonical_bson": "190000000D61000D000000C3A9C3A9C3A9C3A9C3A9C3A90000", |
| 24 | + "canonical_extjson": "{\"a\" : {\"$code\" : \"\\u00e9\\u00e9\\u00e9\\u00e9\\u00e9\\u00e9\"}}" |
25 | 25 | },
|
26 | 26 | {
|
27 | 27 | "description": "three-byte UTF-8 (\u2606)",
|
28 |
| - "canonical_bson": "190000000261000D000000E29886E29886E29886E298860000", |
29 |
| - "canonical_extjson": "{\"a\" : \"\\u2606\\u2606\\u2606\\u2606\"}" |
| 28 | + "canonical_bson": "190000000D61000D000000E29886E29886E29886E298860000", |
| 29 | + "canonical_extjson": "{\"a\" : {\"$code\" : \"\\u2606\\u2606\\u2606\\u2606\"}}" |
30 | 30 | },
|
31 | 31 | {
|
32 | 32 | "description": "Embedded nulls",
|
33 |
| - "canonical_bson": "190000000261000D0000006162006261620062616261620000", |
34 |
| - "canonical_extjson": "{\"a\" : \"ab\\u0000bab\\u0000babab\"}" |
| 33 | + "canonical_bson": "190000000D61000D0000006162006261620062616261620000", |
| 34 | + "canonical_extjson": "{\"a\" : {\"$code\" : \"ab\\u0000bab\\u0000babab\"}}" |
35 | 35 | }
|
36 | 36 | ],
|
37 | 37 | "decodeErrors": [
|
38 | 38 | {
|
39 | 39 | "description": "bad code string length: 0 (but no 0x00 either)",
|
40 |
| - "bson": "0C0000000261000000000000" |
| 40 | + "bson": "0C0000000D61000000000000" |
41 | 41 | },
|
42 | 42 | {
|
43 | 43 | "description": "bad code string length: -1",
|
44 |
| - "bson": "0C000000026100FFFFFFFF00" |
| 44 | + "bson": "0C0000000D6100FFFFFFFF00" |
45 | 45 | },
|
46 | 46 | {
|
47 | 47 | "description": "bad code string length: eats terminator",
|
48 |
| - "bson": "10000000026100050000006200620000" |
| 48 | + "bson": "100000000D6100050000006200620000" |
49 | 49 | },
|
50 | 50 | {
|
51 | 51 | "description": "bad code string length: longer than rest of document",
|
52 |
| - "bson": "120000000200FFFFFF00666F6F6261720000" |
| 52 | + "bson": "120000000D00FFFFFF00666F6F6261720000" |
53 | 53 | },
|
54 | 54 | {
|
55 | 55 | "description": "code string is not null-terminated",
|
56 |
| - "bson": "1000000002610004000000616263FF00" |
| 56 | + "bson": "100000000D610004000000616263FF00" |
57 | 57 | },
|
58 | 58 | {
|
59 | 59 | "description": "empty code string, but extra null",
|
60 |
| - "bson": "0E00000002610001000000000000" |
| 60 | + "bson": "0E0000000D610001000000000000" |
61 | 61 | },
|
62 | 62 | {
|
63 | 63 | "description": "invalid UTF-8",
|
64 |
| - "bson": "0E00000002610002000000E90000" |
| 64 | + "bson": "0E0000000D610002000000E90000" |
65 | 65 | }
|
66 | 66 | ]
|
67 | 67 | }
|
0 commit comments