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

Function test_some_check_index

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

Source from the content-addressed store, hash-verified

1592
1593
1594def test_some_check_index():
1595 items = [4, 2, 6, 7]
1596 result = ['']
1597 pm.eval("(result, arr) => {arr.some((x, index) => result[0] += index)}")(result, items)
1598 assert items == [4, 2, 6, 7]
1599 assert result[0] == '0123'
1600
1601
1602def test_some_check_array():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected