mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-03 01:21:25 +00:00
Integration test for duplicate parameter names
This commit is contained in:
1 parent
4d3314f26f
commit
34dabcbed7
1 file changed
+15
@@ -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]
|
#[test]
|
||||||
fn fails_for_unknown_command() {
|
fn fails_for_unknown_command() {
|
||||||
hyperfine()
|
hyperfine()
|
||||||
|
|||||||
Reference in new issue
Block a user