aboutsummaryrefslogtreecommitdiffstats
path: root/tests/split-escapes.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-10-29 14:24:28 -0400
committerJesse Luehrs <doy@tozt.net>2019-10-29 14:24:28 -0400
commit267f7452949617375c8570caf4b03b434e3350e8 (patch)
tree517ba3be3617c8ca60e804b1e033388e069c37b0 /tests/split-escapes.rs
parentf84638fd816d2295c5d9f60c0ac8eb6df50d1aba (diff)
downloadvt100-rust-267f7452949617375c8570caf4b03b434e3350e8.tar.gz
vt100-rust-267f7452949617375c8570caf4b03b434e3350e8.zip
basic structure of vte parser
Diffstat (limited to 'tests/split-escapes.rs')
-rw-r--r--tests/split-escapes.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/split-escapes.rs b/tests/split-escapes.rs
index 33f3c0d..b630144 100644
--- a/tests/split-escapes.rs
+++ b/tests/split-escapes.rs
@@ -9,13 +9,9 @@ fn get_file_contents(name: &str) -> Vec<u8> {
fn write_to_screen(chunks: &mut Vec<Vec<u8>>) -> String {
let mut screen = vt100::Screen::new(37, 193);
- let mut full_chunk = vec![];
for chunk in chunks.iter_mut() {
- full_chunk.append(chunk);
- let bytes = screen.process(&full_chunk);
- full_chunk = full_chunk.split_off(bytes);
+ screen.process(&chunk);
}
- assert_eq!(full_chunk.len(), 0);
screen.window_contents(0, 0, 36, 192)
}