mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
rexml: Fix XPath concat() implementation
* lib/rexml/functions.rb (REXML::Functions.concat): Implement. * test/rexml/test_jaxen.rb: Enable one more test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6793c0a227
commit
da89931dcc
2 changed files with 6 additions and 3 deletions
|
@ -186,9 +186,12 @@ module REXML
|
|||
rv
|
||||
end
|
||||
|
||||
# UNTESTED
|
||||
def Functions::concat( *objects )
|
||||
objects.join
|
||||
concatenated = ""
|
||||
objects.each do |object|
|
||||
concatenated << string(object)
|
||||
end
|
||||
concatenated
|
||||
end
|
||||
|
||||
# Fixed by Mike Stok
|
||||
|
|
|
@ -30,7 +30,7 @@ module REXMLTests
|
|||
def _test_numbers ; process_test_case("numbers") ; end
|
||||
def test_pi ; process_test_case("pi") ; end
|
||||
def _test_pi2 ; process_test_case("pi2") ; end
|
||||
def _test_simple ; process_test_case("simple") ; end
|
||||
def test_simple ; process_test_case("simple") ; end
|
||||
def _test_testNamespaces ; process_test_case("testNamespaces") ; end
|
||||
def _test_text ; process_test_case("text") ; end
|
||||
def _test_underscore ; process_test_case("underscore") ; end
|
||||
|
|
Loading…
Add table
Reference in a new issue