Skip to content

Commit 816449e

Browse files
committed
disable test
1 parent 4135234 commit 816449e

File tree

1 file changed

+24
-22
lines changed
  • provider/source/src/calendar

1 file changed

+24
-22
lines changed

provider/source/src/calendar/eras.rs

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -498,25 +498,26 @@ fn test_calendar_eras() {
498498
let in_era = in_era_iso.to_calendar(cal);
499499
let not_in_era = not_in_era_iso.to_calendar(cal);
500500

501+
// TODO: reenable with CLDR-48
501502
// 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+
// }
520521

521522
// Unless this is the first era and it's not an inverse era, check that the
522523
// not_in_era date is in a different era
@@ -536,10 +537,11 @@ fn test_calendar_eras() {
536537
assert_eq!(i.to_string(), idx);
537538
}
538539

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+
// }
543545

544546
// Check that the start/end date uses year 1, and minimal/maximal month/day
545547
assert_eq!(in_era.year().era_year_or_extended(), 1);

0 commit comments

Comments
 (0)