aboutsummaryrefslogtreecommitdiffstats
path: root/tests/processing.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-11-01 15:08:32 -0400
committerJesse Luehrs <doy@tozt.net>2019-11-01 15:08:32 -0400
commite2aeb18fa5f05458bdaa8488cc6424109f908855 (patch)
treecc15f13bffafc34c2744c0732d9f9eedc7b6ad6b /tests/processing.rs
parentcb1595a43afa2f71ba1047d089fc7d60d88c6888 (diff)
downloadvt100-rust-e2aeb18fa5f05458bdaa8488cc6424109f908855.tar.gz
vt100-rust-e2aeb18fa5f05458bdaa8488cc6424109f908855.zip
there's no reason title and icon_name should be options
Diffstat (limited to 'tests/processing.rs')
-rw-r--r--tests/processing.rs24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/processing.rs b/tests/processing.rs
index 0e801d2..b5b212a 100644
--- a/tests/processing.rs
+++ b/tests/processing.rs
@@ -73,59 +73,59 @@ fn split_escape_sequences() {
assert_eq!(screen.cursor_position(), (11, 23));
assert_eq!(screen.window_contents(0, 0, 23, 79), contents);
- assert_eq!(screen.title(), None);
+ assert_eq!(screen.title(), "");
screen.process(b"\x1b");
- assert_eq!(screen.title(), None);
+ assert_eq!(screen.title(), "");
assert!(screen.mouse_reporting_press_release());
assert_eq!(screen.cursor_position(), (11, 23));
assert_eq!(screen.window_contents(0, 0, 23, 79), contents);
screen.process(b"]");
- assert_eq!(screen.title(), None);
+ assert_eq!(screen.title(), "");
assert!(screen.mouse_reporting_press_release());
assert_eq!(screen.cursor_position(), (11, 23));
assert_eq!(screen.window_contents(0, 0, 23, 79), contents);
screen.process(b"0");
- assert_eq!(screen.title(), None);
+ assert_eq!(screen.title(), "");
assert!(screen.mouse_reporting_press_release());
assert_eq!(screen.cursor_position(), (11, 23));
assert_eq!(screen.window_contents(0, 0, 23, 79), contents);
screen.process(b";");
- assert_eq!(screen.title(), None);
+ assert_eq!(screen.title(), "");
assert!(screen.mouse_reporting_press_release());
assert_eq!(screen.cursor_position(), (11, 23));
assert_eq!(screen.window_contents(0, 0, 23, 79), contents);
screen.process(b"a");
- assert_eq!(screen.title(), None);
+ assert_eq!(screen.title(), "");
assert!(screen.mouse_reporting_press_release());
assert_eq!(screen.cursor_position(), (11, 23));
assert_eq!(screen.window_contents(0, 0, 23, 79), contents);
screen.process(b" ");
- assert_eq!(screen.title(), None);
+ assert_eq!(screen.title(), "");
assert!(screen.mouse_reporting_press_release());
assert_eq!(screen.cursor_position(), (11, 23));
assert_eq!(screen.window_contents(0, 0, 23, 79), contents);
screen.process(b"'");
- assert_eq!(screen.title(), None);
+ assert_eq!(screen.title(), "");
assert!(screen.mouse_reporting_press_release());
assert_eq!(screen.cursor_position(), (11, 23));
assert_eq!(screen.window_contents(0, 0, 23, 79), contents);
screen.process(b"[");
- assert_eq!(screen.title(), None);
+ assert_eq!(screen.title(), "");
assert!(screen.mouse_reporting_press_release());
assert_eq!(screen.cursor_position(), (11, 23));
assert_eq!(screen.window_contents(0, 0, 23, 79), contents);
screen.process(b"]");
- assert_eq!(screen.title(), None);
+ assert_eq!(screen.title(), "");
assert!(screen.mouse_reporting_press_release());
assert_eq!(screen.cursor_position(), (11, 23));
assert_eq!(screen.window_contents(0, 0, 23, 79), contents);
screen.process(b"_");
- assert_eq!(screen.title(), None);
+ assert_eq!(screen.title(), "");
assert!(screen.mouse_reporting_press_release());
assert_eq!(screen.cursor_position(), (11, 23));
assert_eq!(screen.window_contents(0, 0, 23, 79), contents);
screen.process(b"\x07");
- assert_eq!(screen.title(), Some("a '[]_"));
+ assert_eq!(screen.title(), "a '[]_");
assert!(screen.mouse_reporting_press_release());
assert_eq!(screen.cursor_position(), (11, 23));
assert_eq!(screen.window_contents(0, 0, 23, 79), contents);