Add str reverse subcommand (#2170)

* Add str reverse subcommand

* rustfmt
This commit is contained in:
Joseph T. Lyons
2020-07-14 16:47:04 -04:00
committed by GitHub
parent 80d2a7ee7a
commit 17e6c53b62
6 changed files with 80 additions and 2 deletions

View File

@ -404,3 +404,15 @@ fn from_table() {
assert!(actual.out.contains("32.38"));
assert!(actual.out.contains("15.20"));
}
#[test]
fn str_reverse() {
let actual = nu!(
cwd: ".", pipeline(
r#"
echo "nushell" | str reverse
"#
));
assert!(actual.out.contains("llehsun"));
}