aboutsummaryrefslogtreecommitdiffstats
path: root/tests/init.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/init.rs')
-rw-r--r--tests/init.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/init.rs b/tests/init.rs
index ab56278..4893f4a 100644
--- a/tests/init.rs
+++ b/tests/init.rs
@@ -3,7 +3,7 @@
#[test]
fn init() {
let mut screen = vt100::Screen::new(24, 80);
- assert_eq!(screen.window_size(), (24, 80));
+ assert_eq!(screen.size(), (24, 80));
assert_eq!(screen.cursor_position(), (0, 0));
let cell = screen.cell(0, 0);
@@ -16,11 +16,11 @@ fn init() {
assert!(cell.is_none());
assert_eq!(
- screen.window_contents(0, 0, 23, 79),
+ screen.contents(0, 0, 23, 79),
"\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.window_contents_formatted(0, 0, 23, 79),
+ screen.contents_formatted(0, 0, 23, 79),
"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
);