Skip to content

Commit

Permalink
Fix test_matrix example that does not compile in README
Browse files Browse the repository at this point in the history
  • Loading branch information
ollien committed Oct 18, 2023
1 parent 7ce34ca commit 012c5e5
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 012c5e5

Please sign in to comment.