aboutsummaryrefslogtreecommitdiffstats
path: root/tests/text.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/text.rs')
-rw-r--r--tests/text.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/text.rs b/tests/text.rs
index e0b4cee..cf90b89 100644
--- a/tests/text.rs
+++ b/tests/text.rs
@@ -154,6 +154,14 @@ fn combining() {
let screen = parser.screen().clone();
parser.process(b"\x1bcabcdefg");
assert_eq!(parser.screen().contents_diff(&screen), b"");
+
+ parser.process(b"\x1bcaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
+ assert_eq!(parser.screen().cursor_position(), (0, 80));
+ assert_eq!(parser.screen().contents(), "a".repeat(80));
+
+ parser.process("\u{0301}".as_bytes());
+ assert_eq!(parser.screen().cursor_position(), (0, 80));
+ assert_eq!(parser.screen().contents(), format!("{}รก", "a".repeat(79)));
}
#[test]