summaryrefslogtreecommitdiff
path: root/test/ruby/test_primitive.rb
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-05 12:31:55 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-05 12:31:55 +0000
commitfa9d53d00faa6fb038f6e61570adb51b201276df (patch)
treeb63e1b51b4e1e8584d1d74f816712f293bf475a6 /test/ruby/test_primitive.rb
parent600601c338006d9701ce3a8ee9922cdc47d9fed8 (diff)
* compile.c (NODE_ARGSCAT, NODE_ARGSPUSH): revert r28870 and r28873
which involuntarily changed semantics of type conversion. I'll re-commit a correct patch. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_primitive.rb')
-rw-r--r--test/ruby/test_primitive.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/test/ruby/test_primitive.rb b/test/ruby/test_primitive.rb
index 448349fcbb3..d701348f267 100644
--- a/test/ruby/test_primitive.rb
+++ b/test/ruby/test_primitive.rb
@@ -273,7 +273,6 @@ class TestRubyPrimitive < Test::Unit::TestCase
assert_equal 'abcd', $&
assert_equal 'xyz', $`
assert_equal 'efgabcdefg', $'
- # '
assert_equal 'c', $+
/(?!)/ =~ 'xyzabcdefgabcdefg'
@@ -401,24 +400,4 @@ class TestRubyPrimitive < Test::Unit::TestCase
#assert_equal [0,1,2,3,4], [0, *a, 4]
end
- def test_concatarray_ruby_dev_41933
- bug3658 = '[ruby-dev:41933]'
- [0, *x=1]
- assert_equal(1, x, bug3658)
- [0, *x=1, 2]
- assert_equal(1, x, bug3658)
- class << (x = Object.new)
- attr_accessor :to_a_called
- def to_a
- @to_a_called = true
- [self]
- end
- end
- x.to_a_called = false
- [0, *x]
- assert(x.to_a_called, bug3658)
- x.to_a_called = false
- [0, *x, 2]
- assert(x.to_a_called, bug3658)
- end
end