MCPcopy Create free account
hub / github.com/apache/fory / test_first_to_lower_special_encoding

Function test_first_to_lower_special_encoding

python/pyfory/tests/test_metastring.py:132–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

130
131
132def test_first_to_lower_special_encoding():
133 encoder = MetaStringEncoder(special_char1=".", special_char2="_")
134 decoder = MetaStringDecoder(special_char1=".", special_char2="_")
135
136 test_string = "Aabcdef"
137 metastring = encoder.encode(test_string)
138 assert metastring.encoding == Encoding.FIRST_TO_LOWER_SPECIAL
139 decoded_string = decoder.decode(metastring.encoded_data, metastring.encoding)
140 assert decoded_string == test_string
141
142
143def test_utf8_encoding():

Callers

nothing calls this directly

Calls 4

encodeMethod · 0.95
decodeMethod · 0.95
MetaStringEncoderClass · 0.90
MetaStringDecoderClass · 0.90

Tested by

no test coverage detected