Skip to content

Commit

Permalink
Update src/cursor.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Josh McKinney <joshka@users.noreply.github.com>
  • Loading branch information
linrongbin16 and joshka authored Aug 9, 2024
1 parent ea91d2e commit f44c662
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/cursor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}

0 comments on commit f44c662

Please sign in to comment.