Add more tests

This commit is contained in:
Jonathan Turner
2019-06-03 12:37:16 +12:00
parent 9ba42eae46
commit f3d14aad48
13 changed files with 64 additions and 1 deletions

View File

@ -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;

View File

@ -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");
}
}