+16. Now, we can add new test functions named `test_add_arrays_error()` and so on, where we check if errors are being raised correctly. That is done by wrapping our function call with `with pytest.raises(ValueError)`, for example. What happens when you run `pytest` now? Add checks for both possible errors we came up with. Better yet, use the [`match` keyword argument](https://docs.pytest.org/en/stable/reference/reference.html#pytest-raises) to check the string and ensure *the right* ValueError was raised! What other cases can happen in e.g. `divide_arrays()`?
0 commit comments