aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-12-10 04:23:21 -0500
committerJesse Luehrs <doy@tozt.net>2021-12-10 04:23:21 -0500
commitf60e21ec187fc1357f78b2e91999d28fbca6d2e1 (patch)
treecf9b06001e37ef0a9b7a7e3bcbac0ffc31743929 /tests
parentd6e3c3c07140c8fbb69ad4cc3b4369456458c613 (diff)
downloadvt100-rust-f60e21ec187fc1357f78b2e91999d28fbca6d2e1.tar.gz
vt100-rust-f60e21ec187fc1357f78b2e91999d28fbca6d2e1.zip
ensure that diffing a screen against itself always returns nothing
Diffstat (limited to 'tests')
-rw-r--r--tests/helpers/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/helpers/mod.rs b/tests/helpers/mod.rs
index a7eaadc..53e4f42 100644
--- a/tests/helpers/mod.rs
+++ b/tests/helpers/mod.rs
@@ -84,6 +84,8 @@ pub fn compare_screens(
Bytes(&expected.contents_diff(vt100::Parser::default().screen()))
);
+ is!(Bytes(&got.contents_diff(got)), Bytes(b""));
+
for row in 0..rows {
for col in 0..cols {
let expected_cell = expected.cell(row, col);