mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 12:35:59 +02:00
Add more tests
This commit is contained in:
@ -167,7 +167,7 @@ impl ExternalCommand {
|
||||
let mut first = true;
|
||||
for i in &inputs {
|
||||
if !first {
|
||||
new_arg_string.push_str(" && ");
|
||||
new_arg_string.push_str("&&");
|
||||
new_arg_string.push_str(&self.name);
|
||||
} else {
|
||||
first = false;
|
||||
|
25
src/tests.rs
25
src/tests.rs
@ -58,4 +58,29 @@ mod tests {
|
||||
fn test_toml() {
|
||||
test_helper("open_toml");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_json() {
|
||||
test_helper("open_json");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn json_roundtrip() {
|
||||
test_helper("json_roundtrip");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn toml_roundtrip() {
|
||||
test_helper("toml_roundtrip");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn sort_by() {
|
||||
test_helper("sort_by");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn split() {
|
||||
test_helper("split");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user