mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Add test to clarify r36421. [Bug #5915]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
131f694330
commit
61a67bc720
1 changed files with 3 additions and 0 deletions
|
@ -911,16 +911,19 @@ class TestArray < Test::Unit::TestCase
|
|||
$, = ""
|
||||
a = @cls[1, 2]
|
||||
assert_equal("12", a.join)
|
||||
assert_equal("12", a.join(nil))
|
||||
assert_equal("1,2", a.join(','))
|
||||
|
||||
$, = ""
|
||||
a = @cls[1, 2, 3]
|
||||
assert_equal("123", a.join)
|
||||
assert_equal("123", a.join(nil))
|
||||
assert_equal("1,2,3", a.join(','))
|
||||
|
||||
$, = ":"
|
||||
a = @cls[1, 2, 3]
|
||||
assert_equal("1:2:3", a.join)
|
||||
assert_equal("1:2:3", a.join(nil))
|
||||
assert_equal("1,2,3", a.join(','))
|
||||
|
||||
$, = ""
|
||||
|
|
Loading…
Reference in a new issue