From d2f4c2de7be3b3d9c872e8b1a796b7e276370eb4 Mon Sep 17 00:00:00 2001 From: Ulrich Hornung Date: Sun, 14 Apr 2024 17:45:07 +0200 Subject: [PATCH] fix cspell --- tests/common/windows/mod.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/common/windows/mod.rs b/tests/common/windows/mod.rs index d071ab893f5..cdc82c8e289 100644 --- a/tests/common/windows/mod.rs +++ b/tests/common/windows/mod.rs @@ -397,33 +397,33 @@ mod tests { #[test] #[should_panic(expected = "failed to fill whole buffer")] fn test_detection_of_keywords_fails_only_first_keyword() { - let mut string = "jaslkdfjklasfjaklsdfjsalkfdjalskfjklsajdf\x1b[?25h".as_bytes(); + let mut string = "====================================\x1b[?25h".as_bytes(); read_till_show_cursor_ansi_escape(&mut string); } #[test] #[should_panic(expected = "failed to fill whole buffer")] fn test_detection_of_keywords_fails_only_second_keyword() { - let mut string = "jaslkdfjklasfjaklsdfjsalkfdjalskfjklsajdfENDHEA".as_bytes(); + let mut string = "--------------------------------ENDHEA".as_bytes(); read_till_show_cursor_ansi_escape(&mut string); } #[test] fn test_detection_of_keywords_succeeds_with_first_and_second_keyword() { - let mut string = "jaslkdfjklasfjaklsdfjsalkfdjalskfjklsajdf\x1b[?25hENDHEA".as_bytes(); + let mut string = "^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\x1b[?25hENDHEA".as_bytes(); read_till_show_cursor_ansi_escape(&mut string); } #[test] fn test_detection_of_keywords_succeeds_with_second_and_first_keyword() { - let mut string = "jaslkdfjklasfjaklsdfjsalkfdjalskfjklsajdfENDHEA\x1b[?25h".as_bytes(); + let mut string = ".....................................ENDHEA\x1b[?25h".as_bytes(); read_till_show_cursor_ansi_escape(&mut string); } #[test] fn test_detection_of_keywords_succeeds_with_second_and_first_keyword_and_stuff_in_between() { let mut string = - "jaslkdfjklasfjaklsdfjsalkfdjalskfjklsajdfENDHEAadsadafsdgsadgsa\x1b[?25h".as_bytes(); + "+++++++++++++++++++++ENDHEA+++++++++++++++++++++++\x1b[?25h".as_bytes(); read_till_show_cursor_ansi_escape(&mut string); } }