diff --git a/components/timezone/README.md b/components/timezone/README.md index 6b9cbfd9b8a..37673a2a9c1 100644 --- a/components/timezone/README.md +++ b/components/timezone/README.md @@ -88,6 +88,7 @@ use icu::calendar::DateTime; use icu::timezone::CustomTimeZone; use icu::timezone::GmtOffset; use icu::timezone::MetazoneCalculator; +use icu::timezone::TimeZoneBcp47Id; use icu::timezone::TimeZoneIdMapper; use tinystr::{tinystr, TinyAsciiStr}; @@ -99,7 +100,7 @@ time_zone.time_zone_id = mapper.as_borrowed().iana_to_bcp47("America/Chicago"); // Alternatively, set it directly from the BCP-47 ID -assert_eq!(time_zone.time_zone_id, Some(tinystr!(8, "uschi").into())); +assert_eq!(time_zone.time_zone_id, Some(TimeZoneBcp47Id(tinystr!(8, "uschi")))); // Compute the metazone at January 1, 2022: let mzc = MetazoneCalculator::new(); diff --git a/ffi/ecma402/src/pluralrules.rs b/ffi/ecma402/src/pluralrules.rs index 54a9443b9c1..bf48eb8cb90 100644 --- a/ffi/ecma402/src/pluralrules.rs +++ b/ffi/ecma402/src/pluralrules.rs @@ -188,40 +188,6 @@ pub(crate) mod internal { assert_eq!(test.expected, actual.as_str(), "test: {:?}", &test); } } - - #[test] - fn format_conversion() { - #[derive(Debug)] - struct TestCase { - n: f64, - opts: Options, - expected: PluralOperands, - } - let tests = [TestCase { - n: 1.5, - opts: Options { - in_type: Type::Cardinal, - minimum_integer_digits: 3, - minimum_fraction_digits: 2, - maximum_fraction_digits: 3, - minimum_significant_digits: 3, - maximum_significant_digits: 4, - }, - expected: RawPluralOperands { - i: 1, - v: 2, - w: 1, - f: 50, - t: 5, - c: 0, - } - .into(), - }]; - for test in tests { - let actual = to_icu4x_operands(test.n, test.opts.clone()); - assert_eq!(test.expected, actual, "test: {:?}", &test); - } - } } }