diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-11-06 13:11:22 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-11-06 13:11:22 -0500 |
commit | d778408be8b12fcc16a8fcaccde49bef927f22e0 (patch) | |
tree | 0cfbe005a54ca3146d335c98b91203a1e114c392 /tests/window_contents.rs | |
parent | 07ecf81b095cc1f23428f05079d65aa5d1677ca4 (diff) | |
download | vt100-rust-d778408be8b12fcc16a8fcaccde49bef927f22e0.tar.gz vt100-rust-d778408be8b12fcc16a8fcaccde49bef927f22e0.zip |
make row.contents_diff not require the row index
Diffstat (limited to 'tests/window_contents.rs')
-rw-r--r-- | tests/window_contents.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/window_contents.rs b/tests/window_contents.rs index 17a54b5..1d351cb 100644 --- a/tests/window_contents.rs +++ b/tests/window_contents.rs @@ -329,7 +329,7 @@ fn diff() { let screen2 = parser.screen().clone(); assert_eq!( screen2.contents_diff(&screen1), - b"\x1b[m\x1b[1;6H\x1b[32m bar" + b"\x1b[m\x1b[1;1H\x1b[5C\x1b[32m bar" ); compare_diff(&screen1, &screen2, b""); @@ -343,14 +343,17 @@ fn diff() { parser.process(b"\x1b[1;7H\x1b[32mbaz"); let screen4 = parser.screen().clone(); - assert_eq!(screen4.contents_diff(&screen3), b"\x1b[m\x1b[1;9H\x1b[32mz"); + assert_eq!( + screen4.contents_diff(&screen3), + b"\x1b[m\x1b[1;1H\x1b[8C\x1b[32mz" + ); compare_diff(&screen3, &screen4, b"\x1b[5C\x1b[32m bar\x1b[H\x1b[31mfoo"); parser.process(b"\x1b[1;8H\x1b[X"); let screen5 = parser.screen().clone(); assert_eq!( screen5.contents_diff(&screen4), - b"\x1b[m\x1b[1;8H\x1b[X\x1b[C\x1b[1;8H" + b"\x1b[m\x1b[1;1H\x1b[7C\x1b[X\x1b[C\x1b[1;8H" ); compare_diff( &screen4, |