@@ -297,10 +297,7 @@ mod tests {
297
297
parse_relative_time_at_date( now, "1 year" ) . unwrap( ) ,
298
298
now. checked_add_months( Months :: new( 12 ) ) . unwrap( )
299
299
) ;
300
- assert_eq ! (
301
- parse_relative_time_at_date( now, "this year" ) . unwrap( ) ,
302
- now. checked_add_months( Months :: new( 0 ) ) . unwrap( )
303
- ) ;
300
+ assert_eq ! ( parse_relative_time_at_date( now, "this year" ) . unwrap( ) , now) ;
304
301
assert_eq ! (
305
302
parse_relative_time_at_date( now, "-2 years" ) . unwrap( ) ,
306
303
now. checked_sub_months( Months :: new( 24 ) ) . unwrap( )
@@ -338,10 +335,7 @@ mod tests {
338
335
parse_relative_time_at_date( now, "1 month" ) . unwrap( ) ,
339
336
add_months( now, 1 , false ) . unwrap( ) ,
340
337
) ;
341
- assert_eq ! (
342
- parse_relative_time_at_date( now, "this month" ) . unwrap( ) ,
343
- now. checked_add_months( Months :: new( 0 ) ) . unwrap( )
344
- ) ;
338
+ assert_eq ! ( parse_relative_time_at_date( now, "this month" ) . unwrap( ) , now) ;
345
339
assert_eq ! (
346
340
parse_relative_time_at_date( now, "1 month and 2 weeks" ) . unwrap( ) ,
347
341
add_months( now, 1 , false )
0 commit comments