From 3610f388c853daba46ecf8279a07b37514b58ef8 Mon Sep 17 00:00:00 2001 From: ser Date: Sat, 12 Apr 2008 03:42:46 +0000 Subject: Final cleanup; this should be ready to merge with the trunk. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/rexml_adds_tests@15984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rexml/data/documentation.xml | 2 +- test/rexml/data/lang0.xml | 18 ++++++++++++++++++ test/rexml/test_xpath.rb | 10 +++++----- 3 files changed, 24 insertions(+), 6 deletions(-) create mode 100644 test/rexml/data/lang0.xml diff --git a/test/rexml/data/documentation.xml b/test/rexml/data/documentation.xml index aff17221ee..a1ad6e878b 100644 --- a/test/rexml/data/documentation.xml +++ b/test/rexml/data/documentation.xml @@ -20,7 +20,7 @@ ruby Sean + href="http://www.ser1.net/" jabber="seanerussell@gmail.com">Sean Russell diff --git a/test/rexml/data/lang0.xml b/test/rexml/data/lang0.xml new file mode 100644 index 0000000000..283b4e0f08 --- /dev/null +++ b/test/rexml/data/lang0.xml @@ -0,0 +1,18 @@ + + + + Ruby + + + Yukihiro Matsumoto + + + + + Python + + + Guido van Rossum + + + diff --git a/test/rexml/test_xpath.rb b/test/rexml/test_xpath.rb index 5dfc802d8e..7208267b80 100644 --- a/test/rexml/test_xpath.rb +++ b/test/rexml/test_xpath.rb @@ -313,12 +313,12 @@ class XPathTester < Test::Unit::TestCase end def test_lang - doc = Document.new(File.new("test/rexml/data/lang.xml")) - #puts IO.read( "test/lang.xml" ) - - #puts XPath.match( doc, "//language/*" ).size + doc = Document.new(File.new("test/rexml/data/lang0.xml")) + #puts IO.read( "test/lang.xml" ) + + #puts XPath.match( doc, "//language/*" ).size c = each_test( doc, "//language/*" ) { |element| - #puts "#{element.name}: #{element.text}" + #puts "#{element.name}: #{element.text}" } assert_equal 4, c end -- cgit v1.2.1