mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 14:40:06 +02:00
Fix issue in external subexpression paths (#3642)
* Fix issue in external subexpression paths * new clippy dropped * clippy
This commit is contained in:
@ -14,7 +14,7 @@ fn checks_all_rows_are_true() {
|
||||
| all? $it == "Andrés"
|
||||
"#
|
||||
)),
|
||||
says().to_stdout("true")
|
||||
says().stdout("true")
|
||||
);
|
||||
})
|
||||
}
|
||||
@ -35,7 +35,7 @@ fn checks_all_columns_of_a_table_is_true() {
|
||||
| all? likes > 0
|
||||
"#
|
||||
)),
|
||||
says().to_stdout("true")
|
||||
says().stdout("true")
|
||||
);
|
||||
})
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ fn checks_any_row_is_true() {
|
||||
| any? $it == "New Zealand"
|
||||
"#
|
||||
)),
|
||||
says().to_stdout("true")
|
||||
says().stdout("true")
|
||||
);
|
||||
})
|
||||
}
|
||||
@ -35,7 +35,7 @@ fn checks_any_column_of_a_table_is_true() {
|
||||
| any? rusty_at == 10/12/2013
|
||||
"#
|
||||
)),
|
||||
says().to_stdout("true")
|
||||
says().stdout("true")
|
||||
);
|
||||
})
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ fn adds_a_row_to_the_end() {
|
||||
| nth 3
|
||||
"#
|
||||
)),
|
||||
says().to_stdout("pollo loco")
|
||||
says().stdout("pollo loco")
|
||||
);
|
||||
})
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ fn clearing_config_clears_config() {
|
||||
|
||||
assert_that!(
|
||||
nu.pipeline("config clear; config get skip_welcome_message"),
|
||||
says().to_stdout("")
|
||||
says().stdout("")
|
||||
);
|
||||
let config_contents = std::fs::read_to_string(file).expect("Could not read file");
|
||||
assert!(config_contents.is_empty());
|
||||
@ -43,7 +43,7 @@ fn config_get_returns_value() {
|
||||
assert_that!(
|
||||
//Clears config
|
||||
nu.pipeline("config get skip_welcome_message"),
|
||||
says().to_stdout("true")
|
||||
says().stdout("true")
|
||||
);
|
||||
});
|
||||
}
|
||||
@ -64,7 +64,7 @@ fn config_set_sets_value() {
|
||||
assert_that!(
|
||||
//Clears config
|
||||
nu.pipeline("config set key value; config get key"),
|
||||
says().to_stdout("value")
|
||||
says().stdout("value")
|
||||
);
|
||||
let config_contents = std::fs::read_to_string(file).expect("Could not read file");
|
||||
assert!(config_contents.contains("key = \"value\""));
|
||||
@ -87,7 +87,7 @@ fn config_set_into_sets_value() {
|
||||
assert_that!(
|
||||
//Clears config
|
||||
nu.pipeline("echo value | config set_into key; config get key"),
|
||||
says().to_stdout("value")
|
||||
says().stdout("value")
|
||||
);
|
||||
let config_contents = std::fs::read_to_string(file).expect("Could not read file");
|
||||
assert!(config_contents.contains("key = \"value\""));
|
||||
@ -110,7 +110,7 @@ fn config_rm_removes_value() {
|
||||
|
||||
assert_that!(
|
||||
nu.pipeline("config remove key; config get key"),
|
||||
says().to_stdout("")
|
||||
says().stdout("")
|
||||
);
|
||||
let config_contents = std::fs::read_to_string(file).expect("Could not read file");
|
||||
assert!(!config_contents.contains("key = \"value\""));
|
||||
@ -132,7 +132,7 @@ fn config_path_returns_correct_path() {
|
||||
|
||||
assert_that!(
|
||||
nu.pipeline("config path"),
|
||||
says().to_stdout(&file.inner.to_string_lossy().to_string())
|
||||
says().stdout(&file.inner.to_string_lossy().to_string())
|
||||
);
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user