From e21dbfb7e342374102ec8c84819d6ac8ff0ddfcc Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 19 Oct 2018 08:21:59 +0200 Subject: [PATCH] Removed duplicate test (from color) --- src/drawing.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/drawing.rs b/src/drawing.rs index 08b195c..f46595c 100644 --- a/src/drawing.rs +++ b/src/drawing.rs @@ -122,15 +122,7 @@ mod tests { assert_eq!(Color::White, Color::from(1u8)); } - // test all values aside from 0 and 1 which all should panic - #[test] - fn from_u8_panic() { - for val in 2..=u8::max_value() { - extern crate std; - let result = std::panic::catch_unwind(|| Color::from(val)); - assert!(result.is_err()); - } - } + // test buffer length #[test]