(f1, f2)
| 44 | assert_equal(id(ftype), id(ftype2)) |
| 45 | |
| 46 | def assert_finfo_equal(f1, f2): |
| 47 | # assert two finfo instances have the same attributes |
| 48 | for attr in ('bits', 'eps', 'epsneg', 'iexp', 'machep', |
| 49 | 'max', 'maxexp', 'min', 'minexp', 'negep', 'nexp', |
| 50 | 'nmant', 'precision', 'resolution', 'tiny', |
| 51 | 'smallest_normal', 'smallest_subnormal'): |
| 52 | assert_equal(getattr(f1, attr), getattr(f2, attr), |
| 53 | f'finfo instances {f1} and {f2} differ on {attr}') |
| 54 | |
| 55 | def assert_iinfo_equal(i1, i2): |
| 56 | # assert two iinfo instances have the same attributes |
no test coverage detected
searching dependent graphs…