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

Function test_reverse

tests/python/test_arrays.py:37–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35
36
37def test_reverse():
38 items = [1, 2, 3]
39 pm.eval("(arr) => {arr.reverse()}")(items)
40 assert items == [3, 2, 1]
41
42
43def test_reverse_size_one():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected