()
| 141 | |
| 142 | |
| 143 | def test_utf8_encoding(): |
| 144 | encoder = MetaStringEncoder(special_char1=".", special_char2="_") |
| 145 | decoder = MetaStringDecoder(special_char1=".", special_char2="_") |
| 146 | |
| 147 | test_string = "你好,世界" # Non-Latin characters |
| 148 | metastring = encoder.encode(test_string) |
| 149 | assert metastring.encoding == Encoding.UTF_8 |
| 150 | decoded_string = decoder.decode(metastring.encoded_data, metastring.encoding) |
| 151 | assert decoded_string == test_string |
| 152 | |
| 153 | |
| 154 | def test_strip_last_char(): |
nothing calls this directly
no test coverage detected