File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -23,23 +23,23 @@ use std::str;
2323use std:: vec;
2424use std:: io:: File ;
2525
26- macro_rules! bench (
27- ( $argv: expr, $id: ident) => ( maybe_run_test( $argv. as_slice( ) ,
28- stringify!( $id) . to_string( ) ,
29- $id) )
30- )
31-
3226fn main ( ) {
3327 let argv = os:: args ( ) . move_iter ( ) . map ( |x| x. to_string ( ) ) . collect :: < Vec < String > > ( ) ;
3428 let _tests = argv. slice ( 1 , argv. len ( ) ) ;
3529
36- bench ! ( argv, shift_push) ;
37- bench ! ( argv, read_line) ;
38- bench ! ( argv, vec_plus) ;
39- bench ! ( argv, vec_append) ;
40- bench ! ( argv, vec_push_all) ;
41- bench ! ( argv, is_utf8_ascii) ;
42- bench ! ( argv, is_utf8_multibyte) ;
30+ macro_rules! bench (
31+ ( $id: ident) =>
32+ ( maybe_run_test( argv. as_slice( ) ,
33+ stringify!( $id) . to_string( ) ,
34+ $id) ) )
35+
36+ bench ! ( shift_push) ;
37+ bench ! ( read_line) ;
38+ bench ! ( vec_plus) ;
39+ bench ! ( vec_append) ;
40+ bench ! ( vec_push_all) ;
41+ bench ! ( is_utf8_ascii) ;
42+ bench ! ( is_utf8_multibyte) ;
4343}
4444
4545fn maybe_run_test ( argv : & [ String ] , name : String , test: ||) {
You can’t perform that action at this time.
0 commit comments