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

Function test_every_false

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

Source from the content-addressed store, hash-verified

1733
1734
1735def test_every_false():
1736 items = [1, 2, 4, 6]
1737 result = [None]
1738 pm.eval("(result, arr) => {result[0] = arr.every((element) => element % 2 === 0)}")(result, items)
1739 assert not result[0]
1740
1741
1742def test_every_check_index():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected