Skip to content

Commit

Permalink
docs: test_matrix example that does not compile in README (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
ollien authored Oct 19, 2023
1 parent bf3ee27 commit 97bcfc0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ mod tests {
use test_case::test_matrix;

#[test_matrix(
[-2, 2],
[-4, 4]
[4, 6, 8],
[1, 3, 5]
)]
fn multiplication_tests(x: i8, y: i8) {
let actual = (x * y).abs();
let product = x * y;

assert_eq!(8, actual)
assert_eq!(0, product % 2)
}
}
```
Expand Down

0 comments on commit 97bcfc0

Please sign in to comment.