mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_basicinstructions.rb: remove an assertion using
unsupported hash literal (such as {1, 2}). * test/ruby/test_hash.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
92818d7eb6
commit
6a858e554c
3 changed files with 9 additions and 2 deletions
|
@ -4,7 +4,7 @@ class TestHash < Test::Unit::TestCase
|
|||
|
||||
def test_hash
|
||||
x = {1=>2, 2=>4, 3=>6}
|
||||
y = {1, 2, 2, 4, 3, 6}
|
||||
y = {1=>2, 2=>4, 3=>6} # y = {1, 2, 2, 4, 3, 6} # 1.9 doesn't support
|
||||
|
||||
assert_equal(2, x[1])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue