@@ -321,7 +321,7 @@ mod test {
321321 // 2023-09-11 ISO is 2025-13-06 Ethiopian
322322 let rd = Date :: try_new_iso ( 2023 , 9 , 11 ) . unwrap ( ) . to_rata_die ( ) ;
323323 let date_ethiopian = Date :: from_rata_die ( rd, Ethiopian :: new ( ) ) ;
324- assert_eq ! ( date_ethiopian. extended_year( ) , 2015 ) ;
324+ assert_eq ! ( date_ethiopian. year ( ) . extended_year( ) , 2015 ) ;
325325 assert_eq ! ( date_ethiopian. month( ) . ordinal, 13 ) ;
326326 assert_eq ! ( date_ethiopian. day_of_month( ) . 0 , 6 ) ;
327327 }
@@ -331,7 +331,7 @@ mod test {
331331 let rd = Date :: try_new_iso ( 1970 , 1 , 2 ) . unwrap ( ) . to_rata_die ( ) ;
332332 let date_ethiopian = Date :: from_rata_die ( rd, Ethiopian :: new ( ) ) ;
333333
334- assert_eq ! ( date_ethiopian. extended_year( ) , 1962 ) ;
334+ assert_eq ! ( date_ethiopian. year ( ) . extended_year( ) , 1962 ) ;
335335 assert_eq ! ( date_ethiopian. month( ) . ordinal, 4 ) ;
336336 assert_eq ! ( date_ethiopian. day_of_month( ) . 0 , 24 ) ;
337337
@@ -343,7 +343,7 @@ mod test {
343343 let rd = Date :: try_new_iso ( 1970 , 1 , 2 ) . unwrap ( ) . to_rata_die ( ) ;
344344 let date_ethiopian = Date :: from_rata_die ( rd, Ethiopian ( EthiopianEraStyle :: AmeteAlem ) ) ;
345345
346- assert_eq ! ( date_ethiopian. extended_year( ) , 7462 ) ;
346+ assert_eq ! ( date_ethiopian. year ( ) . extended_year( ) , 7462 ) ;
347347 assert_eq ! ( date_ethiopian. month( ) . ordinal, 4 ) ;
348348 assert_eq ! ( date_ethiopian. day_of_month( ) . 0 , 24 ) ;
349349
@@ -364,13 +364,15 @@ mod test {
364364 Date :: try_new_iso( -5500 + 9 , 1 , 1 )
365365 . unwrap( )
366366 . to_calendar( Ethiopian ( EthiopianEraStyle :: AmeteAlem ) )
367+ . year( )
367368 . extended_year( ) ,
368369 1
369370 ) ;
370371 assert_eq ! (
371372 Date :: try_new_iso( 9 , 1 , 1 )
372373 . unwrap( )
373374 . to_calendar( Ethiopian ( EthiopianEraStyle :: AmeteAlem ) )
375+ . year( )
374376 . extended_year( ) ,
375377 5501
376378 ) ;
@@ -379,13 +381,15 @@ mod test {
379381 Date :: try_new_iso( -5500 + 9 , 1 , 1 )
380382 . unwrap( )
381383 . to_calendar( Ethiopian ( EthiopianEraStyle :: AmeteMihret ) )
384+ . year( )
382385 . extended_year( ) ,
383386 -5499
384387 ) ;
385388 assert_eq ! (
386389 Date :: try_new_iso( 9 , 1 , 1 )
387390 . unwrap( )
388391 . to_calendar( Ethiopian ( EthiopianEraStyle :: AmeteMihret ) )
392+ . year( )
389393 . extended_year( ) ,
390394 1
391395 ) ;
0 commit comments