update.
[chise/ruby.git] / test / test-parser.rb
index af03502..76b2866 100755 (executable)
@@ -36,8 +36,8 @@ class TestParser < Test::Unit::TestCase
   end
 
   def test_parse_ccs
-    #assert_equal(23383, @pa.parse("&J90-3B7A;"))
-    #assert_equal(23383, @pa.parse("&I-J90-3B7A;"))
+    assert_equal(23383, @pa.parse("&J90-3B7A;"))
+    assert_equal(23383, @pa.parse("&I-J90-3B7A;"))
     assert_equal(23383, @pa.parse("&MCS-00005B57;"))
     assert_equal(23383, @pa.parse("&M-06942;"))
   end
@@ -55,14 +55,12 @@ class TestParser < Test::Unit::TestCase
     assert_equal(15225021, @pa.parse("&JC3-50BD;")) # =jef-china3
     assert_equal(1644202692, @pa.parse("&CB00008;"))
     assert_equal(14820071, @pa.parse("&CB08935;"))
-    #assert_equal(0, @pa.parse("&CB08661;")) # what?
   end
 
   def test_de_er
     @pa = CHISE::EntityReferenceParser.new
     assert_equal("This is A.", @pa.de_er("This is &#x41;."))
     assert_equal("A\345\255\227B", @pa.de_er("A&U5B57;B"))
-    #assert_equal("A\345\255\227B", @pa.de_er("A&J90-3B7A;B"))
-#    assert_equal("A\345\255\227B", @pa.de_er("&CB00002;"))
+    assert_equal("A\345\255\227B", @pa.de_er("A&J90-3B7A;B"))
   end
 end