Skip to content

Commit a122d7a

Browse files
committed
Add regression test for bug 21559.
1 parent 48c7f34 commit a122d7a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/test_unicode_normalize.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,11 @@ def test_us_ascii
210210
assert_equal true, ascii_string.unicode_normalized?(:nfkd)
211211
end
212212

213+
def test_bug_21559
214+
str = "s\u{1611e}\u{323}\u{1611e}\u{307}\u{1611f}"
215+
assert_equal str.unicode_normalize(:nfd), str.unicode_normalize(:nfc).unicode_normalize(:nfd)
216+
end
217+
213218
def test_canonical_ordering
214219
a = "\u03B1\u0313\u0300\u0345"
215220
a_unordered1 = "\u03B1\u0345\u0313\u0300"

0 commit comments

Comments
 (0)