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

Function test_float

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

Source from the content-addressed store, hash-verified

70
71
72def test_float():
73 fory = Fory(xlang=False, ref=True, compatible=False)
74 assert ser_de(fory, -1.0) == -1.0
75 assert ser_de(fory, 1 / 3) == 1 / 3
76 serializer = fory.type_resolver.get_serializer(float)
77 assert type(serializer) is pyfory.Float64Serializer
78
79
80def test_tuple():

Callers

nothing calls this directly

Calls 3

ForyClass · 0.90
get_serializerMethod · 0.80
ser_deFunction · 0.70

Tested by

no test coverage detected