mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
39da1b6369
commit
3a47cf3395
212 changed files with 846 additions and 846 deletions
|
@ -21,19 +21,19 @@ class PullParserTester < Test::Unit::TestCase
|
|||
end
|
||||
res[ :text ] += 1 if results.text?
|
||||
end
|
||||
[ :xmldecl, :doctype, :a, :b ].each { |tag|
|
||||
[ :xmldecl, :doctype, :a, :b ].each { |tag|
|
||||
assert res[tag] , "#{tag} wasn't processed"
|
||||
}
|
||||
assert_equal 4, res[ :text ]
|
||||
rescue ParseException
|
||||
assert_equal 4, res[ :text ]
|
||||
rescue ParseException
|
||||
puts $!
|
||||
end
|
||||
|
||||
def test_bad_document
|
||||
source = "<a><b></a>"
|
||||
parser = REXML::Parsers::PullParser.new(source)
|
||||
assert_raise(ParseException, "Parsing should have failed") {
|
||||
results = parser.pull while parser.has_next?
|
||||
assert_raise(ParseException, "Parsing should have failed") {
|
||||
results = parser.pull while parser.has_next?
|
||||
}
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue