@@ -498,25 +498,26 @@ fn test_calendar_eras() {
498
498
let in_era = in_era_iso. to_calendar ( cal) ;
499
499
let not_in_era = not_in_era_iso. to_calendar ( cal) ;
500
500
501
+ // TODO: reenable with CLDR-48
501
502
// Check that code and aliases produce identical results
502
- for era in era
503
- . aliases
504
- . as_deref ( )
505
- . into_iter ( )
506
- . flat_map ( |s| s. split ( ' ' ) )
507
- . chain ( era. code . as_deref ( ) )
508
- {
509
- assert_eq ! (
510
- Date :: try_new_from_codes(
511
- Some ( era) ,
512
- in_era. year( ) . era_year_or_extended( ) ,
513
- in_era. month( ) . standard_code,
514
- in_era. day_of_month( ) . 0 ,
515
- cal,
516
- ) ,
517
- Ok ( in_era)
518
- ) ;
519
- }
503
+ // for era in era
504
+ // .aliases
505
+ // .as_deref()
506
+ // .into_iter()
507
+ // .flat_map(|s| s.split(' '))
508
+ // .chain(era.code.as_deref())
509
+ // {
510
+ // assert_eq!(
511
+ // Date::try_new_from_codes(
512
+ // Some(era),
513
+ // in_era.year().era_year_or_extended(),
514
+ // in_era.month().standard_code,
515
+ // in_era.day_of_month().0,
516
+ // cal,
517
+ // ),
518
+ // Ok(in_era)
519
+ // );
520
+ // }
520
521
521
522
// Unless this is the first era and it's not an inverse era, check that the
522
523
// not_in_era date is in a different era
@@ -536,10 +537,11 @@ fn test_calendar_eras() {
536
537
assert_eq ! ( i. to_string( ) , idx) ;
537
538
}
538
539
539
- // Check that the correct era code is returned
540
- if let Some ( code) = era. code . as_deref ( ) {
541
- assert_eq ! ( in_era. year( ) . standard_era( ) . unwrap( ) . 0 , code) ;
542
- }
540
+ // TODO: reenable with CLDR-48
541
+ // // Check that the correct era code is returned
542
+ // if let Some(code) = era.code.as_deref() {
543
+ // assert_eq!(in_era.year().standard_era().unwrap().0, code);
544
+ // }
543
545
544
546
// Check that the start/end date uses year 1, and minimal/maximal month/day
545
547
assert_eq ! ( in_era. year( ) . era_year_or_extended( ) , 1 ) ;
0 commit comments