RosettaCodeData/Task/Reverse-a-string/Rust/reverse-a-string-3.rs

4 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");