This commit is contained in:
Wez Furlong committed 2022-09-09 21:22:17 -07:00
1 parent ef14f78e08
commit 55fa2e7893
2 files changed
+16 -12

No files matched your search

+6 -4
View File
@@ -2882,10 +2882,12 @@ mod test {
);
assert_eq!(
parse('t', &[6, 15, 7], "\x1b[6;15;7t"),
vec![CSI::Window(Box::new(Window::ReportCellSizePixelsResponse {
width: Some(7),
height: Some(15)
}))]
vec![CSI::Window(Box::new(
Window::ReportCellSizePixelsResponse {
width: Some(7),
height: Some(15)
}
))]
);
}
+10 -8
View File
@@ -795,14 +795,16 @@ mod test {
fn checksum_area() {
assert_eq!(
round_trip_parse("\x1b[1;2;3;4;5;6*y"),
vec![Action::CSI(CSI::Window(Box::new(Window::ChecksumRectangularArea {
request_id: 1,
page_number: 2,
top: OneBased::new(3),
left: OneBased::new(4),
bottom: OneBased::new(5),
right: OneBased::new(6),
})))]
vec![Action::CSI(CSI::Window(Box::new(
Window::ChecksumRectangularArea {
request_id: 1,
page_number: 2,
top: OneBased::new(3),
left: OneBased::new(4),
bottom: OneBased::new(5),
right: OneBased::new(6),
}
)))]
);
}