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

Function test_string

python/pyfory/tests/test_serializer.py:86–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84
85
86def test_string():
87 fory = Fory(xlang=False, ref=True, compatible=False)
88 assert ser_de(fory, "hello") == "hello"
89 assert ser_de(fory, "hello,世界") == "hello,世界"
90 assert ser_de(fory, "hello,世界" * 10) == "hello,世界" * 10
91 assert ser_de(fory, "hello,😀") == "hello,😀"
92 assert ser_de(fory, "hello,😀" * 10) == "hello,😀" * 10
93
94
95@pytest.mark.parametrize("track_ref", [False, True])

Callers 1

test_serializer.pyFile · 0.85

Calls 2

ForyClass · 0.90
ser_deFunction · 0.70

Tested by

no test coverage detected