(actual, target)
| 37 | |
| 38 | |
| 39 | def assert_state_equal(actual, target): |
| 40 | for key in actual: |
| 41 | if isinstance(actual[key], dict): |
| 42 | assert_state_equal(actual[key], target[key]) |
| 43 | elif isinstance(actual[key], np.ndarray): |
| 44 | assert_array_equal(actual[key], target[key]) |
| 45 | else: |
| 46 | assert actual[key] == target[key] |
| 47 | |
| 48 | |
| 49 | def uint32_to_float32(u): |
no test coverage detected