From 29d39d142054239cf2938ffa785dab3a710d7c43 Mon Sep 17 00:00:00 2001 From: Marc Planard Date: Wed, 23 Nov 2022 14:09:58 +0100 Subject: [PATCH] simply even test --- src/ip.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ip.rs b/src/ip.rs index 2d5e3e5..1581456 100644 --- a/src/ip.rs +++ b/src/ip.rs @@ -81,8 +81,8 @@ fn test_ip_from_str() { #[test] fn test_ip_is_even() { - assert_eq!(Ip::new(127, 0, 0, 1).is_even(), false); - assert_eq!(Ip::new(192, 168, 0, 2).is_even(), true); + assert!(!Ip::new(127, 0, 0, 1).is_even()); + assert!(Ip::new(192, 168, 0, 2).is_even()); } #[test]