b0VIM 7.4dWn danhac~dan/dev/gems/unicode-name/spec/unicode_name_spec.rbutf-8 3210#"! UtpWad:WQ^   \ & a Y X " } J B A  d     D  phgz.&%r.^end end end assert_equal "", Unicode::Name.readable("\u{FFFFD}") assert_equal "", Unicode::Name.readable("\u{10C50}") assert_equal "", Unicode::Name.readable("\u{FFFFF}") assert_equal "NULL", Unicode::Name.readable("\0") assert_equal "LATIN CAPITAL LETTER A", Unicode::Name.readable("A") it "will return best readable representation of a codepoint" do describe ".readable" do end end assert_equal "", Unicode::Name.label("\u{10C50}") it "will return for unassigned codepoints" do end assert_equal "", Unicode::Name.label("\u{FFFFF}") it "will return for codepoints defined as noncharacter" do end assert_equal "", Unicode::Name.label("\u{D800}") it "will return for codepoints in surrogate area" do end assert_equal "", Unicode::Name.label("\u{FFFFD}") it "will return for private use characters" do end assert_equal "", Unicode::Name.label("\0") it "will return for control characters" do end assert_equal nil, Unicode::Name.label("A") it "will return nil for usual (graphic) characters" do describe ".label" do end end assert_equal ["NUL"], Unicode::Name.aliases("\0")[:abbreviation] assert_equal ["NULL"], Unicode::Name.aliases("\0")[:control] it "will return aliases grouped by type" do end assert_equal Hash, Unicode::Name.aliases("\0").class it "will always return a Hash" do end assert_equal nil, Unicode::Name.aliases("A") it "will return nil if no alias available" do describe ".aliases" do end end assert_equal "LATIN CAPITAL LETTER GHA", Unicode::Name.correct("Ƣ") it "will return corrected name, if one exists" do end assert_equal "LATIN CAPITAL LETTER A", Unicode::Name.correct("A") it "usually just returns name" do describe ".correct" do end end assert_equal nil, Unicode::Name.of("\0") assert_equal nil, Unicode::Name.of("\u{10c50}") it "will return nil for characters without name" do # end # assert_equal "HANGUL SYLLABLE GAG", Unicode::Name.of("각") # it "works for Hangul Syllables" do end assert_equal "CJK UNIFIED IDEOGRAPH-4E01", Unicode::Name.of("丁") it "works for CJK Ideographs" do end assert_equal "REPLACEMENT CHARACTER", Unicode::Name.of("�") assert_equal "AERIAL TRAMWAY", Unicode::Name.of("🚡") assert_equal "LATIN CAPITAL LETTER A", Unicode::Name.of("A") it "will return name for that character" do describe ".name (alias .of)" dodescribe Unicode::Name dorequire "minitest/autorun"require_relative "../lib/unicode/name"