From 4e20d21ae48ca0a2dcc6b26c619047f2b71fddf1 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 28 Aug 2017 02:59:34 -0600 Subject: [PATCH] Test optflagopt test_optflagopt did not actually test optflagopt. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index e10af2e7..1f323612 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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"));