summaryrefslogtreecommitdiff
path: root/test/ruby/test_call.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-03 00:27:04 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-03 00:27:04 +0000
commita3ee54f8a653f2e7c8ea88ef5ee9f3a49a248447 (patch)
treebf8b7f1fc3fd56c92fd4e2418c3d8cd2d50bfe6b /test/ruby/test_call.rb
parentb907c6e925d82ad2903acd77edcf97635a7c6515 (diff)
parse.y: revert lbracket
* parse.y (lbracket): remove .? before aref. [Feature #11537] revert r52422 and r52424 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_call.rb')
-rw-r--r--test/ruby/test_call.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/test/ruby/test_call.rb b/test/ruby/test_call.rb
index d30890d6a1..12793a7572 100644
--- a/test/ruby/test_call.rb
+++ b/test/ruby/test_call.rb
@@ -46,13 +46,9 @@ class TestCall < Test::Unit::TestCase
assert_equal(5, o.y)
o.?z ||= 6
assert_equal(6, o.z)
- assert_equal(42, o.?[:x])
- assert_equal(42, o.?["x"])
o = nil
assert_nil(o.?x)
- assert_nil(o.?[:x])
- assert_nil(o.?["x"])
assert_nothing_raised(NoMethodError) {o.?x = 6}
assert_nothing_raised(NoMethodError) {o.?x *= 7}
end