1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2025-05-27 22:57:45 +02:00

Merge pull request #2215 from Rudxain/strim

test idempotence of `trim_me` in `strings3.rs`
This commit is contained in:
Mo Bitar 2025-05-13 16:23:35 +02:00 committed by GitHub
commit a99433c62d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,6 +23,7 @@ mod tests {
assert_eq!(trim_me("Hello! "), "Hello!"); assert_eq!(trim_me("Hello! "), "Hello!");
assert_eq!(trim_me(" What's up!"), "What's up!"); assert_eq!(trim_me(" What's up!"), "What's up!");
assert_eq!(trim_me(" Hola! "), "Hola!"); assert_eq!(trim_me(" Hola! "), "Hola!");
assert_eq!(trim_me("Hi!"), "Hi!");
} }
#[test] #[test]