spec/unicode_name_spec.rb in unicode-name-1.10.0 vs spec/unicode_name_spec.rb in unicode-name-1.11.0
- old
+ new
@@ -20,9 +20,14 @@
it "will return nil for characters without name" do
assert_nil Unicode::Name.of("\u{10c50}")
assert_nil Unicode::Name.of("\0")
end
+
+ it "works with recent Unicode characters" do
+ assert_equal "KAKTOVIK NUMERAL ZERO", Unicode::Name.of("𝋀") # Unicode 15.0
+ assert_equal "ETHIOPIC SYLLABLE HHYAA", Unicode::Name.of("𞟣") # Unicode 14.0
+ end
end
describe ".correct" do
it "usually just returns name" do
assert_equal "LATIN CAPITAL LETTER A", Unicode::Name.correct("A")