RosettaCodeData/Task/Reverse-a-string/Rust/reverse-a-string-3.rust
2023-07-01 13:44:08 -04:00

3 lines
142 B
Text

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