MCPcopy Create free account
hub / github.com/numpy/numpy / test_to_64

Function test_to_64

numpy/core/tests/test_extint128.py:97–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95
96
97def test_to_64():
98 with exc_iter(INT128_VALUES) as it:
99 for a, in it:
100 if not (INT64_MIN <= a <= INT64_MAX):
101 assert_raises(OverflowError, mt.extint_to_64, a)
102 else:
103 b = mt.extint_to_64(a)
104 if a != b:
105 assert_equal(b, a)
106
107
108def test_mul_64_64():

Callers

nothing calls this directly

Calls 3

assert_raisesFunction · 0.90
assert_equalFunction · 0.90
exc_iterFunction · 0.85

Tested by

no test coverage detected