aboutsummaryrefslogtreecommitdiffstats
path: root/tests/split-escapes.rs
diff options
context:
space:
mode:
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) {