Iterate the __round__ method through many test cases.
(method, prec, exprange, restricted_range, itr, stat)
| 1065 | log(err) |
| 1066 | |
| 1067 | def test_round(method, prec, exprange, restricted_range, itr, stat): |
| 1068 | """Iterate the __round__ method through many test cases.""" |
| 1069 | for op in all_unary(prec, 9999, itr): |
| 1070 | n = random.randrange(10) |
| 1071 | roundop = (op[0], n) |
| 1072 | t = TestSet(method, roundop) |
| 1073 | try: |
| 1074 | if not convert(t): |
| 1075 | continue |
| 1076 | callfuncs(t) |
| 1077 | verify(t, stat) |
| 1078 | except VerifyError as err: |
| 1079 | log(err) |
| 1080 | |
| 1081 | def test_from_float(method, prec, exprange, restricted_range, itr, stat): |
| 1082 | """Iterate the __float__ method through many test cases.""" |
nothing calls this directly
no test coverage detected
searching dependent graphs…