()
| 182 | |
| 183 | @pytest.mark.slow |
| 184 | def test_divmod_128_64(): |
| 185 | with exc_iter(INT128_VALUES, INT64_POS_VALUES) as it: |
| 186 | for a, b in it: |
| 187 | if a >= 0: |
| 188 | c, cr = divmod(a, b) |
| 189 | else: |
| 190 | c, cr = divmod(-a, b) |
| 191 | c = -c |
| 192 | cr = -cr |
| 193 | |
| 194 | d, dr = mt.extint_divmod_128_64(a, b) |
| 195 | |
| 196 | if c != d or d != dr or b*d + dr != a: |
| 197 | assert_equal(d, c) |
| 198 | assert_equal(dr, cr) |
| 199 | assert_equal(b*d + dr, a) |
| 200 | |
| 201 | |
| 202 | def test_floordiv_128_64(): |
nothing calls this directly
no test coverage detected