(val, expected)
| 27 | # ------------------------------------------------------------------------------ |
| 28 | # Compare value with tolerance. Print error if different. |
| 29 | def CheckResult(val, expected): |
| 30 | if not math.isclose(val, expected): |
| 31 | print("ERROR: has {} instead of {}".format(val, expected)) |
| 32 | return False |
| 33 | |
| 34 | return True |
| 35 | |
| 36 | |
| 37 | # ------------------------------------------------------------------------------ |
no test coverage detected