mirror of
https://github.com/nushell/nushell.git
synced 2024-12-22 07:02:19 +01:00
Reverted test removal from (dfcbaed
)
This commit is contained in:
parent
154063013f
commit
121237ee4b
@ -15,8 +15,8 @@ fn can_only_apply_one() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn regular_field_by_one() {
|
||||
Playground::setup_for("plugin_inc_by_one_test")
|
||||
fn by_one_with_field_passed() {
|
||||
Playground::setup_for("plugin_inc_by_one_with_field_passed_test")
|
||||
.with_files(vec![FileWithContent(
|
||||
"sample.toml",
|
||||
r#"
|
||||
@ -27,13 +27,34 @@ fn regular_field_by_one() {
|
||||
|
||||
nu!(
|
||||
output,
|
||||
cwd("tests/fixtures/nuplayground/plugin_inc_by_one_test"),
|
||||
cwd("tests/fixtures/nuplayground/plugin_inc_by_one_with_field_passed_test"),
|
||||
"open sample.toml | inc package.edition | get package.edition | echo $it"
|
||||
);
|
||||
|
||||
assert_eq!(output, "2019");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn by_one_with_no_field_passed() {
|
||||
Playground::setup_for("plugin_inc_by_one_with_no_field_passed_test")
|
||||
.with_files(vec![FileWithContent(
|
||||
"sample.toml",
|
||||
r#"
|
||||
[package]
|
||||
contributors = "2"
|
||||
"#,
|
||||
)]);
|
||||
|
||||
nu!(
|
||||
output,
|
||||
cwd("tests/fixtures/nuplayground/plugin_inc_by_one_with_no_field_passed_test"),
|
||||
"open sample.toml | get package.contributors | inc | echo $it"
|
||||
);
|
||||
|
||||
assert_eq!(output, "3");
|
||||
}
|
||||
|
||||
|
||||
#[test]
|
||||
fn semversion_major_inc() {
|
||||
Playground::setup_for("plugin_inc_major_semversion_test")
|
||||
|
@ -150,7 +150,6 @@ impl Playground {
|
||||
self
|
||||
}
|
||||
|
||||
|
||||
pub fn glob_vec(pattern: &str) -> Vec<PathBuf> {
|
||||
glob(pattern).unwrap().map(|r| r.unwrap()).collect()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user