ru: update language-script test for Cyrillic

This commit is contained in:
supersfera committed 2026-11-21 20:23:02 -08:00
1 parent ead50b5e87
commit e4585fb2b3
1 file changed
+3 -2
+3 -2
View File
@@ -279,8 +279,9 @@ mod tests {
assert_eq!(Script::of_language("ar"), Some(Script::Arabic));
assert_eq!(Script::of_language("de"), None);
for l in &crate::i18n::LANGUAGES {
// Past the Latin blocks and their diacritics.
let other_script = l.name.chars().any(|c| c > '\u{036F}');
// Past the Latin blocks and their diacritics. Cyrillic is already in the
// interface font (Inter / Ubuntu-Light), so Russian needs no fallback script.
let other_script = l.name.chars().any(|c| c > '\u{036F}' && !('\u{0400}'..='\u{04FF}').contains(&c));
assert_eq!(other_script, Script::of_language(l.code).is_some(), "{}", l.code);
}
}