In #292 (comment) we decided that asserting equality to an Ok gives better error messages than attempting to unwrap (which panics if the observed value is an Err instead of Ok).
We should try to adhere to this.
Find instances of unwrap in asserts by using git grep 'assert.*unwrap' (or git grep unwrap exercises/*/tests for a larger hammer) and remove the unwraps by changing the other argument to an Ok).
In #292 (comment) we decided that asserting equality to an
Okgives better error messages than attempting to unwrap (which panics if the observed value is an Err instead of Ok).We should try to adhere to this.
Find instances of unwrap in asserts by using
git grep 'assert.*unwrap'(orgit grep unwrap exercises/*/testsfor a larger hammer) and remove the unwraps by changing the other argument to anOk).