From 2ce6325b704f94f98a1dbd09e82ac0c65fdeccd2 Mon Sep 17 00:00:00 2001 From: Weksa Date: Mon, 9 Nov 2026 10:44:53 +0000 Subject: [PATCH] Test: pin the modifier-letter table to the toolchain's Unicode version Co-Authored-By: Claude Sonnet 5.5 --- crates/weksa/tests/stores.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/crates/weksa/tests/stores.rs b/crates/weksa/tests/stores.rs index 1eb6951..1922c44 100644 --- a/crates/weksa/tests/stores.rs +++ b/crates/weksa/tests/stores.rs @@ -394,6 +394,18 @@ fn s6_folds_dotless_i_kana_and_arabic_indic_digits() { .unwrap(); } +/// `modifier_letters.txt` is the Unicode 17 Lm list, the oracle for the test +/// below. When the toolchain's Unicode tables move, this fails first: regenerate +/// the file from the new tables, then bump the pin. +#[test] +fn the_modifier_letter_table_matches_the_toolchains_unicode_version() { + assert_eq!( + char::UNICODE_VERSION, + (17, 0, 0), + "regenerate crates/weksa/tests/modifier_letters.txt for the new Unicode version" + ); +} + #[test] fn a_text_of_only_marks_is_refused() { let d = dir();