diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-11-03 14:45:43 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-11-03 14:45:43 -0500 |
commit | d79e96ca09562b07d40fc39d14938967ab908a64 (patch) | |
tree | d9519391960982896f4a99b0ab02643b95fe82d8 /tests/init.rs | |
parent | ee52eb364d071d4dc9c1e2dae22bcf8848d9d14c (diff) | |
download | vt100-rust-d79e96ca09562b07d40fc39d14938967ab908a64.tar.gz vt100-rust-d79e96ca09562b07d40fc39d14938967ab908a64.zip |
rename some methods
Diffstat (limited to 'tests/init.rs')
-rw-r--r-- | tests/init.rs | 6 |
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" ); |