File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -456,19 +456,19 @@ mod tests {
456
456
}
457
457
458
458
#[ test]
459
- #[ should_fail ]
459
+ #[ should_panic ]
460
460
fn test_std_bad_low_limit ( ) {
461
461
test_std_time ( "1901-12-13 20:45:51" ) ;
462
462
}
463
463
464
464
#[ test]
465
- #[ should_fail ]
465
+ #[ should_panic ]
466
466
fn test_bad_leap ( ) {
467
467
test_dt_str ( "2100-02-29 23:59:59" ) ;
468
468
}
469
469
470
470
#[ test]
471
- #[ should_fail ]
471
+ #[ should_panic ]
472
472
fn test_std_bad_hi_limit ( ) {
473
473
test_std_time ( "10000-01-01 00:00:00" ) ;
474
474
}
@@ -492,7 +492,7 @@ mod tests {
492
492
493
493
#[ test]
494
494
fn test_all_funcs ( ) {
495
- let mplier = if env:: var ( "RUST_BENCH" ) . is_some ( ) { 10 } else { 1 } ;
495
+ let mplier = if env:: var ( "RUST_BENCH" ) . is_ok ( ) { 10 } else { 1 } ;
496
496
let mut i = 0 ;
497
497
while i < 3652060 * mplier {
498
498
test_funcs ( i/mplier) ;
You can’t perform that action at this time.
0 commit comments