aboutsummaryrefslogtreecommitdiffstats
path: root/tests/escape.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/escape.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/escape.rs')
-rw-r--r--tests/escape.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/escape.rs b/tests/escape.rs
index e80234a..1651ee5 100644
--- a/tests/escape.rs
+++ b/tests/escape.rs
@@ -37,8 +37,8 @@ fn ris() {
"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
);
- assert_eq!(screen.title(), None);
- assert_eq!(screen.icon_name(), None);
+ assert_eq!(screen.title(), "");
+ assert_eq!(screen.icon_name(), "");
assert_eq!(screen.fgcolor(), vt100::Color::Default);
assert_eq!(screen.bgcolor(), vt100::Color::Default);
@@ -72,8 +72,8 @@ fn ris() {
);
assert_eq!(screen.window_contents_formatted(0, 0, 23, 79), "f\x1b[31;47;1;3;4moo\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");
- assert_eq!(screen.title().unwrap(), "window title");
- assert_eq!(screen.icon_name().unwrap(), "window icon name");
+ assert_eq!(screen.title(), "window title");
+ assert_eq!(screen.icon_name(), "window icon name");
assert_eq!(screen.fgcolor(), vt100::Color::Idx(1));
assert_eq!(screen.bgcolor(), vt100::Color::Idx(7));
@@ -110,8 +110,8 @@ fn ris() {
);
// title and icon name don't change with reset
- assert_eq!(screen.title().unwrap(), "window title");
- assert_eq!(screen.icon_name().unwrap(), "window icon name");
+ assert_eq!(screen.title(), "window title");
+ assert_eq!(screen.icon_name(), "window icon name");
assert_eq!(screen.fgcolor(), vt100::Color::Default);
assert_eq!(screen.bgcolor(), vt100::Color::Default);