Remove trim in favor of str trim (#2560)

This commit is contained in:
Chris Gillespie
2020-09-16 12:59:32 -07:00
committed by GitHub
parent d05f9b3b1e
commit 50cbf91bc5
16 changed files with 14 additions and 263 deletions

View File

@ -4,7 +4,7 @@ use nu_test_support::nu;
fn can_get_reverse_first() {
let actual = nu!(
cwd: "tests/fixtures/formats",
"ls | sort-by name | reverse | first 1 | get name | trim | echo $it"
"ls | sort-by name | reverse | first 1 | get name | str trim | echo $it"
);
assert_eq!(actual.out, "utf16.ini");