Skip to content
Myr

Integration test for duplicate parameter names

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Peter · committed by David Peter · parent 4d3314f · Browse files · 1 file+15 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+15 added−0 removed

  • tests:+15 added−0 removed

1 file+15 added−0 removed

modified:tests/integration_tests.rs+15 added
55 unmodified lines
56 ));57}5859#[test]60fn fails_with_duplicate_parameter_names() {61 hyperfine()62 .arg("--parameter-list")63 .arg("x")64 .arg("1,2,3")65 .arg("--parameter-list")66 .arg("x")67 .arg("a,b,c")68 .arg("echo test")69 .assert()70 .failure()71 .stderr(predicate::str::contains("Duplicate parameter names: x"));72}7374#[test]75fn fails_for_unknown_command() {76 hyperfine()77 .arg("some-nonexisting-program-b5d9574198b7e4b12a71fa4747c0a577")78 .assert()
24 unmodified lines