about summary refs log tree commit diff
path: root/src/libstd/getopts.rs
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-08-15 11:55:17 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-08-15 12:38:32 -0700
commit51d98d9c7bcdfad2daec697739b25193adc09ced (patch)
treec4ae164ad57499113d0cc2e4b82f6406acb82e1f /src/libstd/getopts.rs
parentb0f289397ce47ed8c4d4f97d94408e83a59abd5a (diff)
downloadrust-51d98d9c7bcdfad2daec697739b25193adc09ced.tar.gz
rust-51d98d9c7bcdfad2daec697739b25193adc09ced.zip
Expunge match checks
Diffstat (limited to 'src/libstd/getopts.rs')
-rw-r--r--src/libstd/getopts.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstd/getopts.rs b/src/libstd/getopts.rs
index 04a04691077..1c92fd4ce0d 100644
--- a/src/libstd/getopts.rs
+++ b/src/libstd/getopts.rs
@@ -431,11 +431,12 @@ mod tests {
         let args = ~[~"--test=20"];
         let opts = ~[reqopt(~"test")];
         let rs = getopts(args, opts);
-        match check rs {
+        match rs {
           ok(m) => {
             assert (opt_present(m, ~"test"));
             assert (opt_str(m, ~"test") == ~"20");
           }
+          _ => { fail ~"test_reqopt_long failed"; }
         }
     }