str set sub command removal. (#2940)

This commit is contained in:
Andrés N. Robalino
2021-01-14 18:55:37 -05:00
committed by GitHub
parent ebc4694e05
commit d8ed01400f
5 changed files with 2 additions and 144 deletions

View File

@ -150,30 +150,6 @@ fn converts_to_decimal() {
assert_eq!(actual.out, "3.1415");
}
#[test]
fn sets() {
Playground::setup("str_test_5", |dirs, sandbox| {
sandbox.with_files(vec![FileWithContent(
"sample.toml",
r#"
[package]
name = "nushell"
"#,
)]);
let actual = nu!(
cwd: dirs.test(), pipeline(
r#"
open sample.toml
| str set wykittenshell package.name
| get package.name
"#
));
assert_eq!(actual.out, "wykittenshell");
})
}
#[test]
fn find_and_replaces() {
Playground::setup("str_test_6", |dirs, sandbox| {