From f0056e92cceb70a2fe540f1512f233120fdb440b Mon Sep 17 00:00:00 2001 From: Nick Krichevsky Date: Sun, 1 Oct 2023 20:54:56 -0400 Subject: [PATCH] Fix test_matrix example that does not compile in README --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a73dada..d005aff 100644 --- a/README.md +++ b/README.md @@ -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) } } ```