| 1 | { |
| 2 | "title": "mt3", |
| 3 | "description": "UTF8 strings, from RFC 8949 appendix A", |
| 4 | "tests": [ |
| 5 | { |
| 6 | "description": "Empty string", |
| 7 | "encoded": h'60', |
| 8 | "decoded": "", |
| 9 | }, |
| 10 | { |
| 11 | "description": "Short string", |
| 12 | "encoded": h'6161', |
| 13 | "decoded": "a", |
| 14 | }, |
| 15 | { |
| 16 | "description": "Important string", |
| 17 | "encoded": h'6449455446', |
| 18 | "decoded": "IETF", |
| 19 | }, |
| 20 | { |
| 21 | "description": "Escaped string", |
| 22 | "encoded": h'62225c', |
| 23 | "decoded": "\"\\", |
| 24 | }, |
| 25 | { |
| 26 | "description": "String with short Unicode escape", |
| 27 | "encoded": h'62c3bc', |
| 28 | "decoded": "\u00fc", |
| 29 | }, |
| 30 | { |
| 31 | "description": "String with long Unicode escape", |
| 32 | "encoded": h'63e6b0b4', |
| 33 | "decoded": "\u6c34", |
| 34 | }, |
| 35 | { |
| 36 | "description": "String with UTF-16 Unicode escapes", |
| 37 | "encoded": h'64f0908591', |
| 38 | "decoded": "\ud800\udd51", |
| 39 | }, |
| 40 | ], |
| 41 | } |
| 42 | |