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

Function test_includes_too_few_args

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

Source from the content-addressed store, hash-verified

813
814
815def test_includes_too_few_args():
816 items = [4, 2, 6, 7]
817 try:
818 pm.eval("(arr) => {arr.includes()}")(items)
819 assert (False)
820 except Exception as e:
821 assert str(type(e)) == "<class 'pythonmonkey.SpiderMonkeyError'>"
822 assert str(e).__contains__("TypeError: includes: At least 1 argument required, but only 0 passed")
823
824# sort
825

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected