Browse Source

Removed duplicate test (from color)

embedded-hal-1.0
Chris 7 years ago
parent
commit
e21dbfb7e3
  1. 10
      src/drawing.rs

10
src/drawing.rs

@ -122,15 +122,7 @@ mod tests {
assert_eq!(Color::White, Color::from(1u8)); 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 buffer length
#[test] #[test]

Loading…
Cancel
Save