MCPcopy Create free account
hub / github.com/Distributive-Network/PythonMonkey / test_repr_recursion

Function test_repr_recursion

tests/python/test_lists.py:218–228  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

216
217
218def test_repr_recursion():
219 pyArray = pm.eval("""
220 () => {
221 let arr = [1,2];
222 arr.push(arr);
223 return arr;
224 }
225 """)()
226 expected = "[1.0, 2.0, [...]]"
227 assert repr(pyArray) == expected
228 assert str(pyArray) == expected
229
230# concat
231

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected