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

Function test_every_check_index

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

Source from the content-addressed store, hash-verified

1740
1741
1742def test_every_check_index():
1743 items = [4, 2, 6, 7]
1744 result = ['']
1745 pm.eval("(result, arr) => {arr.every((x, index) => result[0] += index)}")(result, items)
1746 assert items == [4, 2, 6, 7]
1747 assert result[0] == '0'
1748
1749
1750def test_every_check_array():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected