mirror of
https://github.com/sharkdp/hyperfine.git
synced 2024-09-11 14:07:02 +03:00
Integration test for duplicate parameter names
This commit is contained in:
parent
4d3314f26f
commit
34dabcbed7
@ -56,6 +56,21 @@ fn fails_with_wrong_number_of_prepare_options() {
|
||||
));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn fails_with_duplicate_parameter_names() {
|
||||
hyperfine()
|
||||
.arg("--parameter-list")
|
||||
.arg("x")
|
||||
.arg("1,2,3")
|
||||
.arg("--parameter-list")
|
||||
.arg("x")
|
||||
.arg("a,b,c")
|
||||
.arg("echo test")
|
||||
.assert()
|
||||
.failure()
|
||||
.stderr(predicate::str::contains("Duplicate parameter names: x"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn fails_for_unknown_command() {
|
||||
hyperfine()
|
||||
|
Loading…
Reference in New Issue
Block a user