update.
[chise/ruby.git] / test / test-libchise.rb
index 09daa13..ea4780f 100755 (executable)
@@ -19,8 +19,8 @@ class TestLibChise < Test::Unit::TestCase
     char_id = 0x4ECF
     feature = @ds.get_feature("ideographic-structure")
     assert_instance_of(CHISE::Feature, feature)
     char_id = 0x4ECF
     feature = @ds.get_feature("ideographic-structure")
     assert_instance_of(CHISE::Feature, feature)
-    #assert_equal(true, feature.setup_db(0))
-    #assert_equal(true, feature.sync)
+    assert_equal(true, feature.setup_db(0))
+    assert_equal(true, feature.sync)
     value = feature.get_value(char_id)
     assert_equal("(?\342\277\260 ?\344\272\273 ?\345\216\266)", value)
 
     value = feature.get_value(char_id)
     assert_equal("(?\342\277\260 ?\344\272\273 ?\345\216\266)", value)
 
@@ -60,8 +60,8 @@ class TestLibChise < Test::Unit::TestCase
     # get a character by Daikanwa number 364.
     ccs = @ds.get_ccs("=daikanwa")
     assert_instance_of(CHISE::CCS, ccs)
     # get a character by Daikanwa number 364.
     ccs = @ds.get_ccs("=daikanwa")
     assert_instance_of(CHISE::CCS, ccs)
-    #assert_equal(true, ccs.setup_db(0))
-    #assert_equal(true, ccs.sync)
+    assert_equal(true, ccs.setup_db(0))
+    assert_equal(true, ccs.sync)
     char_id = ccs.decode(364)
     assert_equal(0x4ECF, char_id)
 
     char_id = ccs.decode(364)
     assert_equal(0x4ECF, char_id)