From 7e97f6c843db8f381e8ca2bbd232ac3ba58be307 Mon Sep 17 00:00:00 2001 From: Malo <57839069+MDLC01@users.noreply.github.com> Date: Mon, 12 Oct 2026 12:58:22 +0200 Subject: [PATCH] Update variation sequence tests to Unicode 18.0.0 --- build.rs | 4 ++-- src/lib.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build.rs b/build.rs index 33a094d6..28a559b9 100644 --- a/build.rs +++ b/build.rs @@ -72,10 +72,10 @@ fn main() { { let emoji_vs_list = Path::new(&out).join("emoji-variation-sequences.txt"); if !std::fs::read_to_string(&emoji_vs_list) - .is_ok_and(|text| text.contains("Version: 17.0")) + .is_ok_and(|text| text.contains("Version: 18.0.0")) { let content = ureq::get( - "https://www.unicode.org/Public/17.0.0/ucd/emoji/emoji-variation-sequences.txt", + "https://www.unicode.org/Public/18.0.0/ucd/emoji/emoji-variation-sequences.txt", ) .call() .unwrap() diff --git a/src/lib.rs b/src/lib.rs index eb8e482b..223e6bcc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -267,7 +267,7 @@ mod test { assert!( are_all_variants_valid(SYM, |c| { // All emoji variation sequences are exactly 2 codepoints long - // as of Unicode 17.0, so this doesn't miss anything. + // as of Unicode 18.0, so this doesn't miss anything. !(c.chars().count() == 1 && require_presentation_selector.contains(&c.chars().next().unwrap())) }), @@ -285,7 +285,7 @@ mod test { assert!( are_all_variants_valid(EMOJI, |c| { // All emoji variation sequences are exactly 2 codepoints long - // as of Unicode 17.0, so this doesn't miss anything. + // as of Unicode 18.0, so this doesn't miss anything. !(c.chars().count() == 1 && require_presentation_selector.contains(&c.chars().next().unwrap())) }),