update.
[chise/ruby.git] / test / org-test-str.rb
1 #!/usr/bin/env ruby
2 # Copyright (C) 2002-2004 Kouichirou Eto, All rights reserved.
3
4 require "common"
5
6 class TestString < Test::Unit::TestCase
7   def test_method
8
9 #    assert_equal("<文,C1-4546>", "文".inspect_x)
10 #    assert_equal("<字,J90-3B7A>", "字".inspect_x)
11 #    assert_equal("<列,J90-4E73>", "列".inspect_x)
12 #    assert_equal("<文,C1-4546><字,J90-3B7A><列,J90-4E73>", "文字列".inspect_x)
13
14     ins = "字".inspect_all
15 #    assert_match(/^<字,J90-3B7A,/, ins)
16     assert_match(/^<字,#x5b57,/, ins)
17     assert_match(/=big5:42610/, ins)
18     assert_match(/=cns11643-1:18291/, ins)
19     assert_match(/=gb2312:22358/, ins)
20     assert_match(/=daikanwa:6942/, ins)
21     assert_match(/ideographic-radical:39/, ins)
22     assert_match(/ideographic-strokes:3/, ins)
23     assert_match(/=ks-x1001:27950/, ins)
24     assert_match(/shinjigen-2:1777/, ins)
25     assert_match(/total-strokes:6/, ins)
26     assert_match(/=ucs:23383/, ins)
27     assert_match(/=gt:8734/, ins)
28     assert_match(/=gt-k:1624/, ins)
29     assert_match(/=gt-pj-1:15226/, ins)
30     assert_match(/=jis-x0208:15226/, ins)
31   end
32 end