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

Function test_boxed_bigint

tests/python/test_bigints.py:53–57  ·  view source on GitHub ↗
(py_number: int)

Source from the content-addressed store, hash-verified

51
52def test_eval_boxed_numbers_bigints():
53 def test_boxed_bigint(py_number: int):
54 # `BigInt()` can only be called without `new`
55 # https://tc39.es/ecma262/#sec-bigint-constructor
56 js_number = pm.eval(f'new Object({repr(py_number)}n)')
57 assert py_number == js_number
58
59 test_boxed_bigint(0)
60 test_boxed_bigint(1)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected