MCPcopy
hub / github.com/ManimCommunity/manim / test_JSON_basic

Function test_JSON_basic

tests/module/utils/test_hashing.py:19–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17
18
19def test_JSON_basic():
20 o = {"test": 1, 2: 4, 3: 2.0}
21 o_serialized = hashing.get_json(o)
22 assert isinstance(o_serialized, str)
23 assert o_serialized == str({"test": 1, "2": 4, "3": 2.0}).replace("'", '"')
24
25
26def test_JSON_with_object():

Callers

nothing calls this directly

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected