From 97bcfc095c292b8d8ede630ea9a877b809d19ca0 Mon Sep 17 00:00:00 2001 From: Nick Krichevsky Date: Thu, 19 Oct 2023 08:43:11 -0400 Subject: [PATCH] docs: test_matrix example that does not compile in README (#133) --- 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) } } ```