diff options
| author | Martin Dürst <duerst@it.aoyama.ac.jp> | 2025-10-27 21:17:06 +0900 |
|---|---|---|
| committer | Martin Dürst <duerst@it.aoyama.ac.jp> | 2025-11-02 09:27:54 +0900 |
| commit | a122d7a58e91ed6cd531e906cb398688d7cc8b17 (patch) | |
| tree | 2a8cdf62edadf64b74b93ea27439da9b42d17751 | |
| parent | 48c7f349f68846e10d60ae77ad299a38ee014479 (diff) | |
Add regression test for bug 21559.
| -rw-r--r-- | test/test_unicode_normalize.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_unicode_normalize.rb b/test/test_unicode_normalize.rb index 98f46551d3..120ff01cd4 100644 --- a/test/test_unicode_normalize.rb +++ b/test/test_unicode_normalize.rb @@ -210,6 +210,11 @@ class TestUnicodeNormalize assert_equal true, ascii_string.unicode_normalized?(:nfkd) end + def test_bug_21559 + str = "s\u{1611e}\u{323}\u{1611e}\u{307}\u{1611f}" + assert_equal str.unicode_normalize(:nfd), str.unicode_normalize(:nfc).unicode_normalize(:nfd) + end + def test_canonical_ordering a = "\u03B1\u0313\u0300\u0345" a_unordered1 = "\u03B1\u0345\u0313\u0300" |
