spec/unicode_name_spec.rb in unicode-name-1.1.0 vs spec/unicode_name_spec.rb in unicode-name-1.2.0

- old
+ new

@@ -7,9 +7,17 @@ assert_equal "LATIN CAPITAL LETTER A", Unicode::Name.of("A") assert_equal "AERIAL TRAMWAY", Unicode::Name.of("🚡") assert_equal "REPLACEMENT CHARACTER", Unicode::Name.of("�") end + it "works for CJK Ideographs" do + assert_equal "CJK UNIFIED IDEOGRAPH-4E01", Unicode::Name.of("丁") + end + + # it "works for Hangul Syllables" do + # assert_equal "HANGUL SYLLABLE GAG", Unicode::Name.of("각") + # end + it "will return nil for characters without name" do assert_equal nil, Unicode::Name.of("\u{10c50}") assert_equal nil, Unicode::Name.of("\0") end end