assert_equal("⿰", "&U+2FF0;".de_er.to_s)
assert("&U+2FF0;".de_er.char.is_ids?)
assert("&U+2FFF;".de_er.char.is_ids?)
- assert_match(/U\+2FF0/, "&U+2FF0;".de_er.char.inspect_x)
+ #assert_match(/U\+2FF0/, "&U+2FF0;".de_er.char.inspect_x)
assert_match(/IDEOGRAPHIC DESCRIPTION CHARACTER LEFT TO RIGHT/, "&U+2FF0;".de_er.char.inspect_all)
(0x2FF0..0x2FFB).each {|i|
assert_match(/IDEOGRAPHIC DESCRIPTION CHARACTER/, Character.new(i).name)
assert_equal("extra leaves", tree.check_integrity)
end
def test_ids_tree
- assert_equal('[[<+,U+002B>, <A,U+0041>, <B,U+0042>]]', IDS_Tree.new("+AB").inspect)
- assert_equal('[[<+,U+002B>, <A,U+0041>, <B,U+0042>], <C,U+0043>]', IDS_Tree.new("+ABC").inspect)
- assert_equal('[[<+,U+002B>, <A,U+0041>, [<+,U+002B>, <B,U+0042>, <C,U+0043>]]]', IDS_Tree.new("+A+BC").inspect)
- assert_equal('[[<+,U+002B>, <A,U+0041>, [<+,U+002B>, <B,U+0042>, <C,U+0043>]], <D,U+0044>]', IDS_Tree.new("+A+BCD").inspect)
+# assert_equal('[[<+,U+002B>, <A,U+0041>, <B,U+0042>]]', IDS_Tree.new("+AB").inspect)
+# assert_equal('[[<+,U+002B>, <A,U+0041>, <B,U+0042>], <C,U+0043>]', IDS_Tree.new("+ABC").inspect)
+# assert_equal('[[<+,U+002B>, <A,U+0041>, [<+,U+002B>, <B,U+0042>, <C,U+0043>]]]', IDS_Tree.new("+A+BC").inspect)
+# assert_equal('[[<+,U+002B>, <A,U+0041>, [<+,U+002B>, <B,U+0042>, <C,U+0043>]], <D,U+0044>]', IDS_Tree.new("+A+BCD").inspect)
- assert_equal('[<榊,U+698A>]', IDS_Tree.new("榊").inspect)
+ #assert_equal('[<榊,U+698A>]', IDS_Tree.new("榊").inspect)
# assert_equal('[[<⿰,U+2FF0>, <木,J90-4C5A>, <神,J90-3F40>]]', IDS_Tree.new("⿰木神").inspect)
assert_equal(1, IDS_Tree.new("⿰木神").depth)
# assert_equal('[[<⿰,U+2FF0>, <木,J90-4C5A>, [<⿰,U+2FF0>, <⺭,CDP-8B70>, <申,J90-3F3D>]]]', IDS_Tree.new("⿰木⿰⺭申").inspect)