MCPcopy Index your code
hub / github.com/ScrapeGraphAI/toonify / test_roundtrip_tabular_array

Function test_roundtrip_tabular_array

tests/test_roundtrip.py:52–65  ·  view source on GitHub ↗

Test round-trip of tabular array.

()

Source from the content-addressed store, hash-verified

50
51
52def test_roundtrip_tabular_array():
53 """Test round-trip of tabular array."""
54 original = {
55 'users': [
56 {'id': 1, 'name': 'Alice', 'role': 'admin'},
57 {'id': 2, 'name': 'Bob', 'role': 'user'},
58 {'id': 3, 'name': 'Charlie', 'role': 'guest'}
59 ]
60 }
61
62 toon = encode(original)
63 result = decode(toon)
64
65 assert result == original
66
67
68def test_roundtrip_empty_structures():

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…