Skip to content

Commit

Permalink
fix cspell
Browse files Browse the repository at this point in the history
  • Loading branch information
cre4ture committed Apr 14, 2024
1 parent d4f0049 commit d2f4c2d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/common/windows/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Check failure on line 422 in tests/common/windows/mod.rs

View workflow job for this annotation

GitHub Actions / Style/format (ubuntu-latest, feat_os_unix)

ERROR: `cargo fmt`: style violation (file:'tests/common/windows/mod.rs', line:422; use `cargo fmt -- "tests/common/windows/mod.rs"`)

Check failure on line 422 in tests/common/windows/mod.rs

View workflow job for this annotation

GitHub Actions / Style/format (ubuntu-latest, feat_os_unix)

ERROR: `cargo fmt`: style violation (file:'tests/common/windows/mod.rs', line:422; use `cargo fmt -- "tests/common/windows/mod.rs"`)

Check failure on line 422 in tests/common/windows/mod.rs

View workflow job for this annotation

GitHub Actions / Style and Lint (ubuntu-22.04, unix)

ERROR: `cargo fmt`: style violation (file:'tests/common/windows/mod.rs', line:422; use `cargo fmt -- "tests/common/windows/mod.rs"`)

Check failure on line 422 in tests/common/windows/mod.rs

View workflow job for this annotation

GitHub Actions / Style and Lint (ubuntu-22.04, unix)

ERROR: `cargo fmt`: style violation (file:'tests/common/windows/mod.rs', line:422; use `cargo fmt -- "tests/common/windows/mod.rs"`)
#[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);
}
}

0 comments on commit d2f4c2d

Please sign in to comment.