@@ -314,7 +314,7 @@ mod test {
314314 // 11th September 2023 in gregorian is 6/13/2015 in ethiopian
315315 let iso_date = Date :: try_new_iso ( 2023 , 9 , 11 ) . unwrap ( ) ;
316316 let date_ethiopian = Date :: new_from_iso ( iso_date, 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 iso_date = Date :: try_new_iso ( 1970 , 1 , 2 ) . unwrap ( ) ;
325325 let date_ethiopian = Date :: new_from_iso ( iso_date, 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
@@ -339,7 +339,7 @@ mod test {
339339 let iso_date = Date :: try_new_iso ( 1970 , 1 , 2 ) . unwrap ( ) ;
340340 let date_ethiopian = Date :: new_from_iso ( iso_date, Ethiopian ( EthiopianEraStyle :: AmeteAlem ) ) ;
341341
342- assert_eq ! ( date_ethiopian. extended_year( ) , 7462 ) ;
342+ assert_eq ! ( date_ethiopian. year ( ) . extended_year( ) , 7462 ) ;
343343 assert_eq ! ( date_ethiopian. month( ) . ordinal, 4 ) ;
344344 assert_eq ! ( date_ethiopian. day_of_month( ) . 0 , 24 ) ;
345345
@@ -365,6 +365,7 @@ mod test {
365365 Date :: try_new_iso( -5500 + 9 , 1 , 1 ) . unwrap( ) ,
366366 Ethiopian ( EthiopianEraStyle :: AmeteAlem )
367367 )
368+ . year( )
368369 . extended_year( ) ,
369370 1
370371 ) ;
@@ -373,6 +374,7 @@ mod test {
373374 Date :: try_new_iso( 9 , 1 , 1 ) . unwrap( ) ,
374375 Ethiopian ( EthiopianEraStyle :: AmeteAlem )
375376 )
377+ . year( )
376378 . extended_year( ) ,
377379 5501
378380 ) ;
@@ -382,6 +384,7 @@ mod test {
382384 Date :: try_new_iso( -5500 + 9 , 1 , 1 ) . unwrap( ) ,
383385 Ethiopian ( EthiopianEraStyle :: AmeteMihret )
384386 )
387+ . year( )
385388 . extended_year( ) ,
386389 -5499
387390 ) ;
@@ -390,6 +393,7 @@ mod test {
390393 Date :: try_new_iso( 9 , 1 , 1 ) . unwrap( ) ,
391394 Ethiopian ( EthiopianEraStyle :: AmeteMihret )
392395 )
396+ . year( )
393397 . extended_year( ) ,
394398 1
395399 ) ;
0 commit comments