test/func.rb in ox-1.4.1 vs test/func.rb in ox-1.4.2

- old
+ new

@@ -214,9 +214,15 @@ def test_dtd xml = Ox.dump("test", :mode => :object, :with_dtd => true) assert_equal("<!DOCTYPE s SYSTEM \"ox.dtd\">\n<s>test</s>\n", xml) end + def test_lone_dtd + xml = "<!DOCTYPE html>" # not really a valid xml but should pass anyway + doc = Ox.parse(xml) + assert_equal('html', doc.nodes[0].value) + end + def test_class dump_and_load(Bag, false) end def test_exception