@@ -314,7 +314,7 @@ mod test {
314314 // 2023-09-11 ISO is 2025-13-06 Ethiopian
315315 let rd = Date :: try_new_iso ( 2023 , 9 , 11 ) . unwrap ( ) . to_rata_die ( ) ;
316316 let date_ethiopian = Date :: from_rata_die ( rd, Ethiopian :: new ( ) ) ;
317- assert_eq ! ( date_ethiopian. extended_year( ) , 2015 ) ;
317+ assert_eq ! ( date_ethiopian. year ( ) . extended_year( ) , 2015 ) ;
318318 assert_eq ! ( date_ethiopian. month( ) . ordinal, 13 ) ;
319319 assert_eq ! ( date_ethiopian. day_of_month( ) . 0 , 6 ) ;
320320 }
@@ -324,7 +324,7 @@ mod test {
324324 let rd = Date :: try_new_iso ( 1970 , 1 , 2 ) . unwrap ( ) . to_rata_die ( ) ;
325325 let date_ethiopian = Date :: from_rata_die ( rd, Ethiopian :: new ( ) ) ;
326326
327- assert_eq ! ( date_ethiopian. extended_year( ) , 1962 ) ;
327+ assert_eq ! ( date_ethiopian. year ( ) . extended_year( ) , 1962 ) ;
328328 assert_eq ! ( date_ethiopian. month( ) . ordinal, 4 ) ;
329329 assert_eq ! ( date_ethiopian. day_of_month( ) . 0 , 24 ) ;
330330
@@ -336,7 +336,7 @@ mod test {
336336 let rd = Date :: try_new_iso ( 1970 , 1 , 2 ) . unwrap ( ) . to_rata_die ( ) ;
337337 let date_ethiopian = Date :: from_rata_die ( rd, Ethiopian ( EthiopianEraStyle :: AmeteAlem ) ) ;
338338
339- assert_eq ! ( date_ethiopian. extended_year( ) , 7462 ) ;
339+ assert_eq ! ( date_ethiopian. year ( ) . extended_year( ) , 7462 ) ;
340340 assert_eq ! ( date_ethiopian. month( ) . ordinal, 4 ) ;
341341 assert_eq ! ( date_ethiopian. day_of_month( ) . 0 , 24 ) ;
342342
@@ -357,13 +357,15 @@ mod test {
357357 Date :: try_new_iso( -5500 + 9 , 1 , 1 )
358358 . unwrap( )
359359 . to_calendar( Ethiopian ( EthiopianEraStyle :: AmeteAlem ) )
360+ . year( )
360361 . extended_year( ) ,
361362 1
362363 ) ;
363364 assert_eq ! (
364365 Date :: try_new_iso( 9 , 1 , 1 )
365366 . unwrap( )
366367 . to_calendar( Ethiopian ( EthiopianEraStyle :: AmeteAlem ) )
368+ . year( )
367369 . extended_year( ) ,
368370 5501
369371 ) ;
@@ -372,13 +374,15 @@ mod test {
372374 Date :: try_new_iso( -5500 + 9 , 1 , 1 )
373375 . unwrap( )
374376 . to_calendar( Ethiopian ( EthiopianEraStyle :: AmeteMihret ) )
377+ . year( )
375378 . extended_year( ) ,
376379 -5499
377380 ) ;
378381 assert_eq ! (
379382 Date :: try_new_iso( 9 , 1 , 1 )
380383 . unwrap( )
381384 . to_calendar( Ethiopian ( EthiopianEraStyle :: AmeteMihret ) )
385+ . year( )
382386 . extended_year( ) ,
383387 1
384388 ) ;
0 commit comments