update.
[chise/ruby.git] / test / test-char.rb
index 70dbdc0..697d2c7 100755 (executable)
@@ -28,6 +28,15 @@ class TestCharacter < Test::Unit::TestCase
     assert_raise(RuntimeError){ char.nosuchmethod(0) }
   end
 
+  def test_each
+    "字".each_feature {|f, v|
+      #qp f, v
+      assert_instance_of(String, f)
+    }
+    h = "字".hash_feature
+    assert_instance_of(Hash, h)
+  end
+
   def test_bignum
     char = CHISE::Character.get(1644203214)
     assert_equal("\375\242\200\210\263\216",   char.to_s)