summaryrefslogtreecommitdiff
path: root/test/rexml/test_pullparser.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-15 11:55:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-15 11:55:52 +0000
commit3a47cf3395dd4c4fe8bdd5df13aab698f2ca314b (patch)
treec4a278220ba8141b829c5c7b0777c1049cfe413c /test/rexml/test_pullparser.rb
parent39da1b63699faf30c86e753e193c29b81b16136d (diff)
* remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rexml/test_pullparser.rb')
-rw-r--r--test/rexml/test_pullparser.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/rexml/test_pullparser.rb b/test/rexml/test_pullparser.rb
index 1c9bcc0..bfce60f 100644
--- a/test/rexml/test_pullparser.rb
+++ b/test/rexml/test_pullparser.rb
@@ -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