diff options
author | ser <ser@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-12 03:42:46 +0000 |
---|---|---|
committer | ser <ser@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-12 03:42:46 +0000 |
commit | 3610f388c853daba46ecf8279a07b37514b58ef8 (patch) | |
tree | 579a6f5586b66aae87b8da197f8e2ff37bc84d2d | |
parent | d0c9c815cb2dea47b4de8196bad639777254b570 (diff) | |
download | ruby-3610f388c853daba46ecf8279a07b37514b58ef8.tar.gz |
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
-rw-r--r-- | test/rexml/data/documentation.xml | 2 | ||||
-rw-r--r-- | test/rexml/data/lang0.xml | 18 | ||||
-rw-r--r-- | test/rexml/test_xpath.rb | 10 |
3 files changed, 24 insertions, 6 deletions
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 @@ <language>ruby</language> <author email="ser@germane-software.com" - href="http://www.germane-software.com/~ser" jabber="ser@jabber.com">Sean + href="http://www.ser1.net/" jabber="seanerussell@gmail.com">Sean Russell</author> </head> 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 @@ +<programming_languages> + <language oop='yes'> + <name> + Ruby + </name> + <creator> + Yukihiro Matsumoto + </creator> + </language> + <language oop='yes'> + <name> + Python + </name> + <creator> + Guido van Rossum + </creator> + </language> +</programming_languages> 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 |