Skip to content

Commit

Permalink
Test optflagopt
Browse files Browse the repository at this point in the history
test_optflagopt did not actually test optflagopt.
  • Loading branch information
tromey committed Aug 28, 2017
1 parent fac68c0 commit 4e20d21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1346,7 +1346,7 @@ mod tests {
fn test_optflagopt() {
let long_args = vec!("--test".to_string());
let mut opts = Options::new();
opts.optflag("t", "test", "testing");
opts.optflagopt("t", "test", "testing", "ARG");
match opts.parse(&long_args) {
Ok(ref m) => {
assert!(m.opt_present("test"));
Expand Down

0 comments on commit 4e20d21

Please sign in to comment.