# File test/core_test.rb, line 622 def test_bad_content in_gt = '<root-el>content>content</root-el>' in_lt = '<root-el>content<content</root-el>' # This is OK tree_gt = Document.new in_gt assert_equal "content>content", tree_gt.elements[1].text # This isn't begin tree_lt = Document.new in_lt assert_fail "Should have gotten a parse error" rescue ParseException end end