about summary refs log tree commit diff
path: root/src/libextra
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-01-06 08:41:45 -0800
committerbors <bors@rust-lang.org>2014-01-06 08:41:45 -0800
commit8b71b6415dd16dc694bc7d3b1a99d0116b6a0cee (patch)
tree36a072b3674753d32ee7f96e1e1c25e7993e4000 /src/libextra
parentbae091e5171c90803e9c40fb01a76d1b0b6f4321 (diff)
parent2097570f4ca354d2f0d18c52659c472cda4fab08 (diff)
downloadrust-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.rs4
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));
     }