summaryrefslogtreecommitdiff
path: root/test/rexml/test_preceding_sibling.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2020-01-11 21:37:00 +0900
committerSHIBATA Hiroshi <hsbt@ruby-lang.org>2020-01-12 12:28:29 +0900
commitc3ccf23d5807f2ff20127bf5e42df0977bf672fb (patch)
treed3953c32b61645c7af65d30e626af944f143cf58 /test/rexml/test_preceding_sibling.rb
parent012f297311817ecb19f78c55854b033bb4b0397c (diff)
Make rexml library to the bundle gems
[Feature #16485][ruby-core:96683]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2832
Diffstat (limited to 'test/rexml/test_preceding_sibling.rb')
-rw-r--r--test/rexml/test_preceding_sibling.rb41
1 files changed, 0 insertions, 41 deletions
diff --git a/test/rexml/test_preceding_sibling.rb b/test/rexml/test_preceding_sibling.rb
deleted file mode 100644
index d89a1e1..0000000
--- a/test/rexml/test_preceding_sibling.rb
+++ /dev/null
@@ -1,41 +0,0 @@
-# frozen_string_literal: false
-# ISSUE 32
-require 'test/unit'
-require 'rexml/document'
-
-module REXMLTests
- # daz - for report by Dan Kohn in:
- # http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/156328
- class XPathTesterDd < Test::Unit::TestCase
- include REXML
-
- def setup
- @@docDd = Document.new(<<-EOS, :ignore_whitespace_nodes => :all)
- <a>
- <b x='ab01A'>
- <c y='abc01A'>Success</c>
- </b>
- <b x='ab02A' y='ab02B'>
- <c>abc02C</c>
- </b>
- </a>
- EOS
- end
-
- def test_Dd_preceding_sibling_children
- arr = []
- XPath.each(@@docDd, "//b[@x='ab02A']/preceding-sibling::b/child::*") do |cell|
- arr << cell.texts.join
- end
- assert_equal( 'Success', arr.join )
- end
-
- def test_Dd_preceding_sibling_all
- arr = []
- XPath.each(@@docDd, "//b[@x='ab02A']/preceding-sibling::*") do |cell|
- arr << cell.to_s
- end
- assert_equal( "<b x='ab01A'><c y='abc01A'>Success</c></b>", arr.join )
- end
- end
-end