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
|
@ -1,3 +1,10 @@
|
||||||
|
Thu Jul 5 19:16:14 2007 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
|
* test/ruby/test_basicinstructions.rb: remove an assertion using
|
||||||
|
unsupported hash literal (such as {1, 2}).
|
||||||
|
|
||||||
|
* test/ruby/test_hash.rb: ditto.
|
||||||
|
|
||||||
Thu Jul 5 19:12:22 2007 NAKAMURA Usaku <usa@ruby-lang.org>
|
Thu Jul 5 19:12:22 2007 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* ruby.c: Qfalse is VALUE, not pointer.
|
* ruby.c: Qfalse is VALUE, not pointer.
|
||||||
|
|
|
@ -114,7 +114,7 @@ class TestBasicInstructions < Test::Unit::TestCase
|
||||||
assert_equal({1=>2}, {1=>2})
|
assert_equal({1=>2}, {1=>2})
|
||||||
assert_equal({1=>2, 3=>4}, {1=>2, 3=>4})
|
assert_equal({1=>2, 3=>4}, {1=>2, 3=>4})
|
||||||
assert_equal({1=>2, 3=>4}, {3=>4, 1=>2})
|
assert_equal({1=>2, 3=>4}, {3=>4, 1=>2})
|
||||||
assert_equal({1=>2, 3=>4}, {1,2, 3,4})
|
# assert_equal({1=>2, 3=>4}, {1,2, 3,4}) # 1.9 doesn't support
|
||||||
assert_equal({"key"=>"val"}, {"key"=>"val"})
|
assert_equal({"key"=>"val"}, {"key"=>"val"})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ class TestHash < Test::Unit::TestCase
|
||||||
|
|
||||||
def test_hash
|
def test_hash
|
||||||
x = {1=>2, 2=>4, 3=>6}
|
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])
|
assert_equal(2, x[1])
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue