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

Function test_all_to_upper_special_encoding

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

Source from the content-addressed store, hash-verified

119
120
121def test_all_to_upper_special_encoding():
122 encoder = MetaStringEncoder(special_char1=".", special_char2="_")
123 decoder = MetaStringDecoder(special_char1=".", special_char2="_")
124
125 test_string = "ABC_DEF"
126 metastring = encoder.encode(test_string)
127 assert metastring.encoding == Encoding.LOWER_UPPER_DIGIT_SPECIAL
128 decoded_string = decoder.decode(metastring.encoded_data, metastring.encoding)
129 assert decoded_string == test_string
130
131
132def test_first_to_lower_special_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