spec/unicode_name_spec.rb in unicode-name-1.4.1 vs spec/unicode_name_spec.rb in unicode-name-1.4.2
- old
+ new
@@ -27,9 +27,13 @@
describe ".correct" do
it "usually just returns name" do
assert_equal "LATIN CAPITAL LETTER A", Unicode::Name.correct("A")
end
+ it "returns nothing if no name or correction alias exsits" do
+ assert_nil Unicode::Name.correct("\0")
+ end
+
it "will return corrected name, if one exists" do
assert_equal "LATIN CAPITAL LETTER GHA", Unicode::Name.correct("Ƣ")
end
end