mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 14:36:08 +02:00
Add str reverse subcommand (#2170)
* Add str reverse subcommand * rustfmt
This commit is contained in:
@ -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"));
|
||||
}
|
||||
|
Reference in New Issue
Block a user