MCPcopy Create free account
hub / github.com/apache/arrow / test_cast_float_to_decimal

Function test_cast_float_to_decimal

python/pyarrow/tests/test_compute.py:2262–2268  ·  view source on GitHub ↗
(float_ty, decimal_ty, case_generator)

Source from the content-addressed store, hash-verified

2260 random_float_to_decimal_cast_cases],
2261 ids=['integrals', 'reals', 'random'])
2262def test_cast_float_to_decimal(float_ty, decimal_ty, case_generator):
2263 with decimal.localcontext() as ctx:
2264 for case in case_generator(float_ty, decimal_ty.max_precision):
2265 check_cast_float_to_decimal(
2266 float_ty, case.float_val,
2267 decimal_ty.factory(case.precision, case.scale),
2268 ctx, decimal_ty.max_precision)
2269
2270
2271@pytest.mark.numpy

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected