(prec, emax, emin, itr=None)
| 479 | yield x |
| 480 | |
| 481 | def bin_random_mixed_op(prec, emax, emin, itr=None): |
| 482 | if itr is None: |
| 483 | itr = 1000 |
| 484 | for _ in range(itr): |
| 485 | for func in number_funcs: |
| 486 | yield randdec(prec, emax), func() |
| 487 | yield func(), randdec(prec, emax) |
| 488 | for number in number_funcs: |
| 489 | for dec in close_funcs: |
| 490 | yield dec(prec, emax, emin), number() |
| 491 | # Test garbage input |
| 492 | for x in (['x'], ('y',), {'z'}, {1:'z'}): |
| 493 | for y in (['x'], ('y',), {'z'}, {1:'z'}): |
| 494 | yield x, y |
| 495 | |
| 496 | def tern_random_mixed_op(prec, emax, emin, itr): |
| 497 | if itr is None: |
no test coverage detected
searching dependent graphs…