mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 14:36:08 +02:00
add --char flag to 'str trim' (#2162)
This commit is contained in:
@ -22,6 +22,19 @@ fn trims() {
|
||||
})
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn error_trim_multiple_chars() {
|
||||
let actual = nu!(
|
||||
cwd: ".", pipeline(
|
||||
r#"
|
||||
echo 'does it work now?!' | str trim -c '?!'
|
||||
"#
|
||||
)
|
||||
);
|
||||
|
||||
assert!(actual.err.contains("char"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn capitalizes() {
|
||||
Playground::setup("str_test_2", |dirs, sandbox| {
|
||||
|
Reference in New Issue
Block a user