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

Function test_every_true

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

Source from the content-addressed store, hash-verified

1725
1726
1727def test_every_true():
1728 items = [2, 4, 6]
1729 result = [None]
1730 pm.eval("(result, arr) => {result[0] = arr.every((element) => element % 2 === 0)}")(result, items)
1731 assert items == [2, 4, 6]
1732 assert result[0]
1733
1734
1735def test_every_false():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected