Skip to content

Commit

Permalink
rust: add additional tests to test_trim_whitespace
Browse files Browse the repository at this point in the history
Signed-off-by: Bennet Bleßmann <[email protected]>
  • Loading branch information
Skgland committed Oct 19, 2022
1 parent 8b59bd6 commit 71bc611
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rust/kernel/str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,8 @@ macro_rules! fmt {
///
/// ```
/// # use kernel::str::trim_whitespace;
/// assert_eq!(trim_whitespace(b"" ), b"");
/// assert_eq!(trim_whitespace(b" "), b"");
/// assert_eq!(trim_whitespace(b"foo "), b"foo");
/// assert_eq!(trim_whitespace(b" foo"), b"foo");
/// assert_eq!(trim_whitespace(b" foo "), b"foo");
Expand Down

0 comments on commit 71bc611

Please sign in to comment.