MCPcopy Create free account
hub / github.com/ScrapeGraphAI/toonify / test_roundtrip_nested_object

Function test_roundtrip_nested_object

tests/test_roundtrip.py:20–35  ·  view source on GitHub ↗

Test round-trip of nested object.

()

Source from the content-addressed store, hash-verified

18
19
20def test_roundtrip_nested_object():
21 """Test round-trip of nested object."""
22 original = {
23 'user': {
24 'name': 'Alice',
25 'profile': {
26 'age': 30,
27 'city': 'NYC'
28 }
29 }
30 }
31
32 toon = encode(original)
33 result = decode(toon)
34
35 assert result == original
36
37
38def test_roundtrip_primitive_array():

Callers

nothing calls this directly

Calls 2

encodeFunction · 0.90
decodeFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…