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

Function test_some_check_array

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

Source from the content-addressed store, hash-verified

1600
1601
1602def test_some_check_array():
1603 items = ['Four', 'Three', 'One']
1604 result = ['']
1605 pm.eval("(result, arr) => {arr.some((element, index, array) => result[0] = array)}")(result, items)
1606 assert result == [items]
1607 assert result[0] is items
1608
1609
1610def test_some_check_this_arg():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected