Permalink
Browse files

Add failing test case for Nokogiri::XML::Node#content inconsistency b…

…etween Java and C
  • Loading branch information...
1 parent f75a283 commit 311be4b9a4de39f23da762654c631e0f9ee2b301 @benlangfeld benlangfeld committed Nov 18, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 test/xml/test_node.rb
View
@@ -798,6 +798,10 @@ def test_content_equals
node.content = "1234 <-> 1234"
assert_equal "1234 <-> 1234", node.content
assert_equal "<form>1234 &lt;-&gt; 1234</form>", node.to_xml
+
+ node.content = '1234'
+ node.add_child '<foo>5678</foo>'
+ assert_equal '12345678', node.content
end
def test_set_content_should_unlink_existing_content

0 comments on commit 311be4b

Please sign in to comment.