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

Function test_some_false

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

Source from the content-addressed store, hash-verified

1585
1586
1587def test_some_false():
1588 items = [1, 3, 5]
1589 result = [None]
1590 pm.eval("(result, arr) => {result[0] = arr.some((element) => element % 2 === 0)}")(result, items)
1591 assert not result[0]
1592
1593
1594def test_some_check_index():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected