aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-01-29 15:33:50 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-01-29 15:33:50 +0000
commit674ea103fa113707747e572be682c11d34af739e (patch)
tree8f11645526f3fd56c818814361b82a2cc82eee67 /test
parent1195ba6644dd68123beeaa1efc228f8e7cfad4b1 (diff)
downloadruby-674ea103fa113707747e572be682c11d34af739e.tar.gz
* array.c (rb_ary_join): [].join.encoding must be US-ASCII.
[ruby-list:47790] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_array.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb
index 6724634691..e6a438cd73 100644
--- a/test/ruby/test_array.rb
+++ b/test/ruby/test_array.rb
@@ -890,6 +890,7 @@ class TestArray < Test::Unit::TestCase
a = @cls[]
assert_equal("", a.join)
assert_equal("", a.join(','))
+ assert_equal(Encoding::US_ASCII, a.join.encoding)
$, = ""
a = @cls[1, 2]