From f44c662f55c5bd84ef2564f6f6584d6045026ce3 Mon Sep 17 00:00:00 2001 From: linrongbin16 Date: Fri, 9 Aug 2024 13:28:37 +0800 Subject: [PATCH] Update src/cursor.rs Co-authored-by: Josh McKinney --- src/cursor.rs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/cursor.rs b/src/cursor.rs index 68552bc5..80985122 100644 --- a/src/cursor.rs +++ b/src/cursor.rs @@ -504,19 +504,4 @@ mod tests { assert_eq!(y, saved_y); } - #[test] - fn test_set_cursor_style() { - assert!(SetCursorStyle::DefaultUserShape == SetCursorStyle::DefaultUserShape); - assert!(SetCursorStyle::BlinkingBlock != SetCursorStyle::BlinkingUnderScore); - assert_eq!(SetCursorStyle::BlinkingBlock, SetCursorStyle::BlinkingBlock); - assert_eq!(format!("{:?}", SetCursorStyle::SteadyBar), "SteadyBar"); - let s1 = SetCursorStyle::DefaultUserShape; - let s2 = s1; - let s3 = s1.clone(); - assert!(s2 == s1); - assert!(s3 == s1); - let mut hasher = DefaultHasher::new(); - assert!(s1.hash(&mut hasher) == s2.hash(&mut hasher)); - assert!(s1.hash(&mut hasher) == s3.hash(&mut hasher)); - } }