From f60e21ec187fc1357f78b2e91999d28fbca6d2e1 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 10 Dec 2021 04:23:21 -0500 Subject: ensure that diffing a screen against itself always returns nothing --- tests/helpers/mod.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') 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); -- cgit v1.2.3-54-g00ecf