# assert_equal(6, char.get_char_attribute('total_strokes'), "get total strokes by XEmacs UTF-2000 like method")
assert_equal(6, char['total_strokes'], "get total strokes by Hash like method") if char.is_a? Character
assert_equal(6, char.total_strokes, "get total strokes by method")
assert_equal(23383, char.ucs, "translate to ucs")
# assert_equal(6, char.get_char_attribute('total_strokes'), "get total strokes by XEmacs UTF-2000 like method")
assert_equal(6, char['total_strokes'], "get total strokes by Hash like method") if char.is_a? Character
assert_equal(6, char.total_strokes, "get total strokes by method")
assert_equal(23383, char.ucs, "translate to ucs")
assert_equal(1777, char.shinjigen_2, "get shinjigen 2")
assert_equal(3, char.ideographic_strokes, "get")
assert_equal(39, char.ideographic_radical, "get")
assert_equal(1777, char.shinjigen_2, "get shinjigen 2")
assert_equal(3, char.ideographic_strokes, "get")
assert_equal(39, char.ideographic_radical, "get")
assert_equal(Character.get("&J90-3B7A;"), @char, "jisx0208")
# assert_equal("&J90-3B7A;", @char.to_er, "jisx0208")
assert_equal(Character.get("&MCS-00005B57;"), @char, "mcs")
assert_equal(Character.get("&J90-3B7A;"), @char, "jisx0208")
# assert_equal("&J90-3B7A;", @char.to_er, "jisx0208")
assert_equal(Character.get("&MCS-00005B57;"), @char, "mcs")
- assert_equal(Character.get("&M-06942;"), @char, "ideograph-daikanwa, Morohashi")
+# assert_equal(Character.get("&M-06942;"), @char, "ideograph-daikanwa, Morohashi")
assert_equal(char.bidi_category, "L", "bidi")
assert_equal(char.name, "LATIN CAPITAL LETTER A", "name")
assert_equal(char.bidi_category, "L", "bidi")
assert_equal(char.name, "LATIN CAPITAL LETTER A", "name")
assert_equal(char.latin_jisx0201, 65, "jisx0201")
assert_equal(char.latin_viscii, 65, "viscii") #って何?
#->fullwidth: (((name . "FULLWIDTH LATIN CAPITAL LETTER A") (ucs . 65313)))
assert_equal(char.latin_jisx0201, 65, "jisx0201")
assert_equal(char.latin_viscii, 65, "viscii") #って何?
#->fullwidth: (((name . "FULLWIDTH LATIN CAPITAL LETTER A") (ucs . 65313)))
#assert_equal(char.to_er, "&U+2FF0;", "ids er")
assert_equal(char.to_er, "⿰", "ids er")
assert_equal(char.bidi_category, "ON", "ids bidi")
#assert_equal(char.to_er, "&U+2FF0;", "ids er")
assert_equal(char.to_er, "⿰", "ids er")
assert_equal(char.bidi_category, "ON", "ids bidi")
assert_equal(0x5B57, "字".ucs)
assert_equal(0x5B57, @char.ucs)
assert_equal(0x5B57, "字".ucs)
assert_equal(0x5B57, @char.ucs)
- assert_equal(0xfa55, "突".char['=>ucs-jis'])
- assert_equal(0xfa55, "突".map_ucs_jis)
+ assert_equal(0xfa55, "突".char['=>ucs@jis'])
+ assert_equal(0xfa55, "突".map_ucs_at_jis)
- assert_equal("(((name . \"FULLWIDTH DIGIT ONE\") (ucs . 65297)))", "1".char['->fullwidth'])
- assert_equal("(((name . \"FULLWIDTH DIGIT ONE\") (ucs . 65297)))", "1".char.to_fullwidth)
- assert_equal("(((name . \"DIGIT ONE\") (ucs . 49)))", "1".char['<-fullwidth'])
- assert_equal("(((name . \"DIGIT ONE\") (ucs . 49)))", "1".char.from_fullwidth)
+ assert_equal("(((name . \"FULLWIDTH DIGIT ONE\") (=ucs . 65297)))", "1".char['->fullwidth'])
+ assert_equal("(((name . \"FULLWIDTH DIGIT ONE\") (=ucs . 65297)))", "1".char.to_fullwidth)
+ assert_equal("(((name . \"DIGIT ONE\") (=ucs . 49)))", "1".char['<-fullwidth'])
+ assert_equal("(((name . \"DIGIT ONE\") (=ucs . 49)))", "1".char.from_fullwidth)