(float_ty, decimal_ty, case_generator)
| 2423 | random_float_to_decimal_cast_cases], |
| 2424 | ids=['integrals', 'reals', 'random']) |
| 2425 | def test_cast_float_to_decimal(float_ty, decimal_ty, case_generator): |
| 2426 | with decimal.localcontext() as ctx: |
| 2427 | for case in case_generator(float_ty, decimal_ty.max_precision): |
| 2428 | check_cast_float_to_decimal( |
| 2429 | float_ty, case.float_val, |
| 2430 | decimal_ty.factory(case.precision, case.scale), |
| 2431 | ctx, decimal_ty.max_precision) |
| 2432 | |
| 2433 | |
| 2434 | @pytest.mark.numpy |
nothing calls this directly
no test coverage detected