aboutsummaryrefslogtreecommitdiffstats
path: root/tests/split-escapes.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-11-04 00:50:55 -0500
committerJesse Luehrs <doy@tozt.net>2019-11-04 00:50:55 -0500
commit3447af1b2197235ff68d3b228f9fd0b2a1a133c3 (patch)
tree41d10939bf5d10c473616c12581676d0cffff1c1 /tests/split-escapes.rs
parentea55c107307ef8bca11accc09ff2c47c74745cb1 (diff)
downloadvt100-rust-3447af1b2197235ff68d3b228f9fd0b2a1a133c3.tar.gz
vt100-rust-3447af1b2197235ff68d3b228f9fd0b2a1a133c3.zip
also make sure the formatted contents stays the same
Diffstat (limited to 'tests/split-escapes.rs')
-rw-r--r--tests/split-escapes.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/split-escapes.rs b/tests/split-escapes.rs
index 89e7b2e..b9f4cd9 100644
--- a/tests/split-escapes.rs
+++ b/tests/split-escapes.rs
@@ -7,12 +7,15 @@ fn get_file_contents(name: &str) -> Vec<u8> {
buf
}
-fn write_to_screen(chunks: &mut Vec<Vec<u8>>) -> String {
+fn write_to_screen(chunks: &mut Vec<Vec<u8>>) -> (String, String) {
let mut screen = vt100::Screen::new(37, 193);
for chunk in chunks.iter_mut() {
screen.process(&chunk);
}
- screen.contents(0, 0, 36, 192)
+ (
+ screen.contents(0, 0, 36, 192),
+ screen.contents_formatted(0, 0, 36, 192),
+ )
}
fn test_splits(filename: &str) {