RosettaCodeData/Task/Reverse-a-string/Rust/reverse-a-string-3.rs
2024-10-16 18:07:41 -07:00

3 lines
142 B
Rust

let output: String = "as⃝df̅".chars().rev().collect();
assert_ne!(output, "f̅ds⃝a"); // should be this
assert_eq!(output, "̅fd⃝sa");