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

Function test_some_true

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

Source from the content-addressed store, hash-verified

1577
1578
1579def test_some_true():
1580 items = [1, 2, 3, 4, 5]
1581 result = [None]
1582 pm.eval("(result, arr) => {result[0] = arr.some((element) => element % 2 === 0)}")(result, items)
1583 assert items == [1, 2, 3, 4, 5]
1584 assert result[0]
1585
1586
1587def test_some_false():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected