File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -461,7 +461,7 @@ mod test {
461461 }
462462
463463 assert_eq!(fi.read_byte(), -1);
464- fail_unless !(fi.eof());
464+ assert !(fi.eof());
465465 assert_eq!(fi.state().line_num, 3)
466466
467467 }
@@ -482,7 +482,7 @@ mod test {
482482 let count = fi.read(buf, 10);
483483 assert_eq!(count, 6);
484484 assert_eq!(buf, " 0 \n 1 \n 2 \n ". to_bytes( ) ) ;
485- fail_unless !( fi. eof( ) )
485+ assert !( fi. eof( ) )
486486 assert_eq!( fi. state( ) . line_num, 3 ) ;
487487 }
488488
@@ -520,7 +520,9 @@ mod test {
520520 }
521521
522522 for input_vec_state( filenames) |line, state| {
523- let nums = str :: split_char( line, ' ' ) ;
523+ let nums = do vec:: build |p| {
524+ for str :: each_split_char( line, ' ' ) |s| { p( s. to_owned( ) ) ; }
525+ } ;
524526 let file_num = uint:: from_str( nums[ 0 ] ) . get( ) ;
525527 let line_num = uint:: from_str( nums[ 1 ] ) . get( ) ;
526528 assert_eq!( line_num, state. line_num_file) ;
You can’t perform that action at this time.
0 commit comments