From f6327e732fbc8c68dae163401d283924769dee8d Mon Sep 17 00:00:00 2001 From: naruse Date: Mon, 23 Jul 2012 21:37:39 +0000 Subject: Suppress warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rexml/test_xpath.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/rexml/test_xpath.rb') diff --git a/test/rexml/test_xpath.rb b/test/rexml/test_xpath.rb index ad09fcafb2..4ccd4edeaf 100644 --- a/test/rexml/test_xpath.rb +++ b/test/rexml/test_xpath.rb @@ -219,7 +219,7 @@ class XPathTester < Test::Unit::TestCase for line in File.new(xpathtests) line.strip! begin - rt = doc.root + doc.root #puts "#"*80 #print "\nDoing #{line} " ; $stdout.flush doc.elements.each(line) do |el| @@ -332,7 +332,7 @@ class XPathTester < Test::Unit::TestCase EOF doc = Document.new source - result = XPath.each( doc, "//bar" ) { + XPath.each( doc, "//bar" ) { fail "'bar' should match nothing in this case" } @@ -523,7 +523,7 @@ class XPathTester < Test::Unit::TestCase # examples from http://www.w3.org/TR/xpath#function-substring doc = Document.new('') - d = Document.new("") + Document.new("") #puts XPath.first(d, 'node()[0 + 1]') #d = Document.new("") #puts XPath.first(d, 'a[0 mod 0]') @@ -589,7 +589,7 @@ class XPathTester < Test::Unit::TestCase def test_name assert_raise( UndefinedNamespaceException, "x should be undefined" ) { - d = REXML::Document.new("") + REXML::Document.new("") } d = REXML::Document.new("") assert_equal 1, d.root.elements.to_a('*[name() = "b"]').size -- cgit v1.2.3