diff options
| author | bors <bors@rust-lang.org> | 2014-01-06 08:41:45 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-01-06 08:41:45 -0800 |
| commit | 8b71b6415dd16dc694bc7d3b1a99d0116b6a0cee (patch) | |
| tree | 36a072b3674753d32ee7f96e1e1c25e7993e4000 /src/libextra | |
| parent | bae091e5171c90803e9c40fb01a76d1b0b6f4321 (diff) | |
| parent | 2097570f4ca354d2f0d18c52659c472cda4fab08 (diff) | |
| download | rust-8b71b6415dd16dc694bc7d3b1a99d0116b6a0cee.tar.gz rust-8b71b6415dd16dc694bc7d3b1a99d0116b6a0cee.zip | |
auto merge of #11333 : cmr/rust/triage2, r=alexcrichton
Diffstat (limited to 'src/libextra')
| -rw-r--r-- | src/libextra/getopts.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libextra/getopts.rs b/src/libextra/getopts.rs index 5debc999192..78baa4f7ec8 100644 --- a/src/libextra/getopts.rs +++ b/src/libextra/getopts.rs @@ -1522,6 +1522,9 @@ mod tests { optmulti("l") ]; + // short and verbose should always be in the same order. if they + // aren't the test will fail (and in mysterious ways) + let verbose = ~[ groups::reqopt("b", "banana", "Desc", "VAL"), groups::optopt("a", "apple", "Desc", "VAL"), @@ -1533,7 +1536,6 @@ mod tests { let sample_args = ~[~"--kiwi", ~"15", ~"--apple", ~"1", ~"k", ~"-p", ~"16", ~"l", ~"35"]; - // FIXME #4681: sort options here? assert!(getopts(sample_args, short) == groups::getopts(sample_args, verbose)); } |
