fix(lint): replace unnecessary assert_eq! with assert! (#1079)
This commit is contained in:
parent
6e1915fdf2
commit
28c2046890
1 changed files with 4 additions and 4 deletions
|
|
@ -828,13 +828,13 @@ fn mark_text_inside_floating_pane() {
|
||||||
tab.handle_pty_bytes(5, Vec::from("\u{1b}#8".as_bytes()));
|
tab.handle_pty_bytes(5, Vec::from("\u{1b}#8".as_bytes()));
|
||||||
tab.handle_pty_bytes(6, Vec::from("\u{1b}#8".as_bytes()));
|
tab.handle_pty_bytes(6, Vec::from("\u{1b}#8".as_bytes()));
|
||||||
tab.handle_left_click(&Position::new(9, 71), client_id);
|
tab.handle_left_click(&Position::new(9, 71), client_id);
|
||||||
assert_eq!(
|
assert!(
|
||||||
tab.selecting_with_mouse, true,
|
tab.selecting_with_mouse,
|
||||||
"started selecting with mouse on click"
|
"started selecting with mouse on click"
|
||||||
);
|
);
|
||||||
tab.handle_mouse_release(&Position::new(8, 50), client_id);
|
tab.handle_mouse_release(&Position::new(8, 50), client_id);
|
||||||
assert_eq!(
|
assert!(
|
||||||
tab.selecting_with_mouse, false,
|
!tab.selecting_with_mouse,
|
||||||
"stopped selecting with mouse on release"
|
"stopped selecting with mouse on release"
|
||||||
);
|
);
|
||||||
tab.render(&mut output, None);
|
tab.render(&mut output, None);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue