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

Function test_every_check_array

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

Source from the content-addressed store, hash-verified

1748
1749
1750def test_every_check_array():
1751 items = ['Four', 'Three', 'One']
1752 result = ['']
1753 pm.eval("(result, arr) => {arr.every((element, index, array) => result[0] = array)}")(result, items)
1754 assert result == [items]
1755 assert result[0] is items
1756
1757
1758def test_every_check_this_arg():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected