spec/unicode_name_spec.rb in unicode-name-1.13.0 vs spec/unicode_name_spec.rb in unicode-name-1.13.1
- old
+ new
@@ -14,10 +14,13 @@
end
it "works for Hangul Syllables" do
assert_equal "HANGUL SYLLABLE HAN", Unicode::Name.of("한")
assert_equal "HANGUL SYLLABLE GAG", Unicode::Name.of("각")
+ assert_equal "HANGUL SYLLABLE GAE", Unicode::Name.of("개")
+ assert_equal "HANGUL SYLLABLE GAENG", Unicode::Name.of("갱")
+ assert_equal "HANGUL SYLLABLE DWALB", Unicode::Name.of("돫")
end
it "will return nil for characters without name" do
assert_nil Unicode::Name.of("\u{10c50}")
assert_nil Unicode::Name.of("\0")
@@ -87,9 +90,10 @@
end
describe ".readable" do
it "will return best readable representation of a codepoint" do
assert_equal "LATIN CAPITAL LETTER A", Unicode::Name.readable("A")
+ assert_equal "LATIN CAPITAL LETTER GHA", Unicode::Name.readable("Ƣ")
assert_equal "NULL", Unicode::Name.readable("\0")
assert_equal "<noncharacter-FFFFF>", Unicode::Name.readable("\u{FFFFF}")
assert_equal "<reserved-10C50>", Unicode::Name.readable("\u{10C50}")
assert_equal "<private-use-FFFFD>", Unicode::Name.readable("\u{FFFFD}")
end