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

Function test_ascii_encoding

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

Source from the content-addressed store, hash-verified

175
176
177def test_ascii_encoding():
178 encoder = MetaStringEncoder(special_char1=".", special_char2="_")
179
180 test_string = "asciiOnly"
181 encoded_metastring = encoder.encode(test_string)
182 assert encoded_metastring.encoding != Encoding.UTF_8
183 assert encoded_metastring.encoding == Encoding.ALL_TO_LOWER_SPECIAL
184
185
186def test_non_ascii_encoding():

Callers

nothing calls this directly

Calls 2

encodeMethod · 0.95
MetaStringEncoderClass · 0.90

Tested by

no test coverage detected