From 5b6cf353a81f6d101ef5f41e046fe2594b8d8df7 Mon Sep 17 00:00:00 2001 From: "Shane F. Carr" Date: Thu, 12 Oct 2023 14:04:21 -0700 Subject: [PATCH] Use -x- in transliterate test data --- .../tests/data/baked/macros/transliterator_rules_v1.data.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/experimental/transliterate/tests/data/baked/macros/transliterator_rules_v1.data.rs b/experimental/transliterate/tests/data/baked/macros/transliterator_rules_v1.data.rs index 2da4402a368..861e344fc10 100644 --- a/experimental/transliterate/tests/data/baked/macros/transliterator_rules_v1.data.rs +++ b/experimental/transliterate/tests/data/baked/macros/transliterator_rules_v1.data.rs @@ -172,7 +172,7 @@ macro_rules! __impl_transliterator_rules_v1 { rule_group_list: unsafe { zerovec::VarZeroVec::from_bytes_unchecked(b"\x01\0\0\0\0\0\x02\0\0\0\0\0\x1B\0\x04\0\0\0\0\0\0\0\x01\0\0\0\x02\0\0\0\x02\0\0\0xa\xF3\xB0\x80\x80b\x04\0\0\0\0\0\0\0\0\0\0\0\x01\0\0\0\x01\0\0\0xbad") }, }; static VALUES: [&::Yokeable; 16usize] = [&UND__DE_T_DE_D0_ASCII, &UND__EL_LATN_T_EL_M0_BGN, &UND__UND_ARAB_T_S0_INTINDIC, &UND__UND_ARAB_T_UND_BENG, &UND__UND_LATN_T_S0_ASCII, &UND__UND_T_D0_PUBLISH, &UND__UND_T_S0_PUBLISH, &UND__UND_T_UND_BENG_D0_INTINDIC, &UND__UND_T_UND_LATN_D0_ASCII, &UND__UND_T_UND_D0_TEST_M0_CURSFILT_S0_TEST, &UND__UND_T_UND_D0_TEST_M0_EMTYMACH_S0_TEST, &UND__UND_T_UND_D0_TEST_M0_HEXRUST_S0_TEST, &UND__UND_T_UND_D0_TEST_M0_HEXUNI_S0_TEST, &UND__UND_T_UND_D0_TEST_M0_NIELS_S0_TEST, &UND__UND_T_UND_D0_TEST_M0_RECTESTA_S0_TEST, &UND__UND_T_UND_D0_TEST_M0_RECTESTR_S0_TEST]; - static KEYS: [&str; 16usize] = ["und+de-t-de-d0-ascii", "und+el-Latn-t-el-m0-bgn", "und+und-Arab-t-s0-intindic", "und+und-Arab-t-und-Beng", "und+und-Latn-t-s0-ascii", "und+und-t-d0-publish", "und+und-t-s0-publish", "und+und-t-und-Beng-d0-intindic", "und+und-t-und-Latn-d0-ascii", "und+und-t-und-d0-test-m0-cursfilt-s0-test", "und+und-t-und-d0-test-m0-emtymach-s0-test", "und+und-t-und-d0-test-m0-hexrust-s0-test", "und+und-t-und-d0-test-m0-hexuni-s0-test", "und+und-t-und-d0-test-m0-niels-s0-test", "und+und-t-und-d0-test-m0-rectesta-s0-test", "und+und-t-und-d0-test-m0-rectestr-s0-test"]; + static KEYS: [&str; 16usize] = ["und-x-de-t-de-d0-ascii", "und-x-el-Latn-t-el-m0-bgn", "und-x-und-Arab-t-s0-intindic", "und-x-und-Arab-t-und-Beng", "und-x-und-Latn-t-s0-ascii", "und-x-und-t-d0-publish", "und-x-und-t-s0-publish", "und-x-und-t-und-Beng-d0-intindic", "und-x-und-t-und-Latn-d0-ascii", "und-x-und-t-und-d0-test-m0-cursfilt-s0-test", "und-x-und-t-und-d0-test-m0-emtymach-s0-test", "und-x-und-t-und-d0-test-m0-hexrust-s0-test", "und-x-und-t-und-d0-test-m0-hexuni-s0-test", "und-x-und-t-und-d0-test-m0-niels-s0-test", "und-x-und-t-und-d0-test-m0-rectesta-s0-test", "und-x-und-t-und-d0-test-m0-rectestr-s0-test"]; if let Ok(payload) = KEYS.binary_search_by(|k| req.locale.strict_cmp(k.as_bytes()).reverse()).map(|i| *unsafe { VALUES.get_unchecked(i) }) { Ok(icu_provider::DataResponse { payload: Some(icu_provider::DataPayload::from_static_ref(payload)), metadata: Default::default() }) } else {