diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-11-03 11:04:16 +0000 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-11-03 11:04:16 +0000 |
commit | 31181841edec356c049fae56f78aa5ba1c086619 (patch) | |
tree | 262dfcdf177768c759a0895792a020193abdbb11 /tests/window_contents.rs | |
parent | ff65c812fcf3e46803bb3fbdc820d0006ea004c3 (diff) | |
download | vt100-rust-31181841edec356c049fae56f78aa5ba1c086619.tar.gz vt100-rust-31181841edec356c049fae56f78aa5ba1c086619.zip |
fmt
Diffstat (limited to 'tests/window_contents.rs')
-rw-r--r-- | tests/window_contents.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/window_contents.rs b/tests/window_contents.rs index 057cfb1..91e73e3 100644 --- a/tests/window_contents.rs +++ b/tests/window_contents.rs @@ -1,14 +1,20 @@ #[test] fn formatted() { let mut screen = vt100::Screen::new(24, 80); - assert_eq!(screen.window_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"); + assert_eq!( + screen.window_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" + ); screen.process(b"foobar"); 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), "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"); + assert_eq!( + screen.window_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" + ); screen.process(b"\x1b[1;4H\x1b[1;7m\x1b[33mb"); assert!(!screen.cell(0, 2).unwrap().bold()); |