aboutsummaryrefslogtreecommitdiffstats
path: root/tests/text.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/text.rs')
-rw-r--r--tests/text.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/text.rs b/tests/text.rs
index 51ee297..d153f11 100644
--- a/tests/text.rs
+++ b/tests/text.rs
@@ -226,6 +226,10 @@ fn wrap() {
assert_eq!(parser.screen().cell(1, 2).unwrap().contents(), "a");
assert_eq!(parser.screen().cell(1, 3).unwrap().contents(), "");
+ let mut new_parser = vt100::Parser::default();
+ new_parser.process(&parser.screen().contents_formatted());
+ assert_eq!(new_parser.screen().contents(), parser.screen().contents());
+
parser.process(b"\x1b[H\x1b[J");
assert_eq!(parser.screen().contents(), "");
parser.process(b" ");