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;
23
23
use std:: vec;
24
24
use std:: io:: File ;
25
25
26
- macro_rules! bench (
27
- ( $argv: expr, $id: ident) => ( maybe_run_test( $argv. as_slice( ) ,
28
- stringify!( $id) . to_string( ) ,
29
- $id) )
30
- )
31
-
32
26
fn main ( ) {
33
27
let argv = os:: args ( ) . move_iter ( ) . map ( |x| x. to_string ( ) ) . collect :: < Vec < String > > ( ) ;
34
28
let _tests = argv. slice ( 1 , argv. len ( ) ) ;
35
29
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) ;
43
43
}
44
44
45
45
fn maybe_run_test ( argv : & [ String ] , name : String , test: ||) {
You can’t perform that action at this time.
0 commit comments