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/window_contents.rs | |
parent | ee52eb364d071d4dc9c1e2dae22bcf8848d9d14c (diff) | |
download | vt100-rust-d79e96ca09562b07d40fc39d14938967ab908a64.tar.gz vt100-rust-d79e96ca09562b07d40fc39d14938967ab908a64.zip |
rename some methods
Diffstat (limited to 'tests/window_contents.rs')
-rw-r--r-- | tests/window_contents.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/window_contents.rs b/tests/window_contents.rs index 91e73e3..ac2e2e8 100644 --- a/tests/window_contents.rs +++ b/tests/window_contents.rs @@ -2,7 +2,7 @@ fn formatted() { let mut screen = vt100::Screen::new(24, 80); 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" ); @@ -12,7 +12,7 @@ fn formatted() { assert!(!screen.cell(0, 4).unwrap().bold()); assert!(!screen.cell(0, 5).unwrap().bold()); assert_eq!( - screen.window_contents_formatted(0, 0, 23, 79), + screen.contents_formatted(0, 0, 23, 79), "foobar\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n" ); @@ -21,12 +21,12 @@ fn formatted() { assert!(screen.cell(0, 3).unwrap().bold()); assert!(!screen.cell(0, 4).unwrap().bold()); assert!(!screen.cell(0, 5).unwrap().bold()); - assert_eq!(screen.window_contents_formatted(0, 0 ,23, 79), "foo\x1b[33;1;7mb\x1b[mar\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.contents_formatted(0, 0 ,23, 79), "foo\x1b[33;1;7mb\x1b[mar\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"); screen.process(b"\x1b[1;5H\x1b[22;42ma"); assert!(!screen.cell(0, 2).unwrap().bold()); assert!(screen.cell(0, 3).unwrap().bold()); assert!(!screen.cell(0, 4).unwrap().bold()); assert!(!screen.cell(0, 5).unwrap().bold()); - assert_eq!(screen.window_contents_formatted(0, 0 ,23, 79), "foo\x1b[33;1;7mb\x1b[42;22ma\x1b[mr\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.contents_formatted(0, 0 ,23, 79), "foo\x1b[33;1;7mb\x1b[42;22ma\x1b[mr\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"); } |