2 # Copyright (C) 2002-2004 Kouichirou Eto, All rights reserved.
6 class TestString < Test::Unit::TestCase
9 str = @str.map_char {|ch|
12 assert_equal("文文字字列列", str)
13 assert_equal("文字列", @str)
15 # assert_equal("<文,C1-4546>", "文".inspect_x)
16 # assert_equal("<字,J90-3B7A>", "字".inspect_x)
17 # assert_equal("<列,J90-4E73>", "列".inspect_x)
18 # assert_equal("<文,C1-4546><字,J90-3B7A><列,J90-4E73>", "文字列".inspect_x)
21 # assert_match(/^<字,J90-3B7A,/, ins)
22 assert_match(/^<字,#x5b57,/, ins)
23 assert_match(/=big5:42610/, ins)
24 assert_match(/=cns11643-1:18291/, ins)
25 assert_match(/=gb2312:22358/, ins)
26 assert_match(/=daikanwa:6942/, ins)
27 assert_match(/ideographic-radical:39/, ins)
28 assert_match(/ideographic-strokes:3/, ins)
29 assert_match(/=ks-x1001:27950/, ins)
30 assert_match(/shinjigen-2:1777/, ins)
31 assert_match(/total-strokes:6/, ins)
32 assert_match(/=ucs:23383/, ins)
33 assert_match(/=gt:8734/, ins)
34 assert_match(/=gt-k:1624/, ins)
35 assert_match(/=gt-pj-1:15226/, ins)
36 assert_match(/=jis-x0208:15226/, ins)