diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-23 21:37:39 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-23 21:37:39 +0000 |
commit | f6327e732fbc8c68dae163401d283924769dee8d (patch) | |
tree | 47f2922c8db27b572148164f8de904fa569bd7de /test/rexml/test_xpath.rb | |
parent | d1c42e4f341e063d3849a3a9e3622b7261735559 (diff) |
Suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rexml/test_xpath.rb')
-rw-r--r-- | test/rexml/test_xpath.rb | 8 |
1 files changed, 4 insertions, 4 deletions
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 </foo> 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('<test string="12345" />') - d = Document.new("<a b='1'/>") + Document.new("<a b='1'/>") #puts XPath.first(d, 'node()[0 + 1]') #d = Document.new("<a b='1'/>") #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("<a x='foo'><b/><x:b/></a>") + REXML::Document.new("<a x='foo'><b/><x:b/></a>") } d = REXML::Document.new("<a xmlns:x='foo'><b/><x:b/></a>") assert_equal 1, d.root.elements.to_a('*[name() = "b"]').size |