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

Function test_insert_function

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

Source from the content-addressed store, hash-verified

473
474
475def test_insert_function():
476 def f():
477 return
478 a = pm.eval("[1,2]")
479 a.insert(0, f)
480 assert len(a) == 3
481
482
483def test_insert_int_neg_index():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected