1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/psych/test_yamldbm.rb: avoid platform dependency.

patch by Naohisa Goto. [ruby-dev:44763] [Bug #5535]
* test/syck/test_yamldbm.rb: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ayumin 2011-11-01 15:52:48 +00:00
parent ebbd0df5ec
commit aea9c733e8
3 changed files with 14 additions and 8 deletions

View file

@ -1,3 +1,9 @@
Wed Nov 02 00:43:59 2011 Ayumu AIZAWA <ayumu.aizawa@gmail.com>
* test/psych/test_yamldbm.rb: avoid platform dependency.
patch by Naohisa Goto. [ruby-dev:44763] [Bug #5535]
* test/syck/test_yamldbm.rb: ditto.
Wed Nov 2 00:14:15 2011 Shugo Maeda <shugo@ruby-lang.org>
* test/ruby/test_marshal.rb: renamed methods duplicated with those

View file

@ -48,7 +48,7 @@ module Psych
def test_to_a
@yamldbm['a'] = 'b'
@yamldbm['c'] = 'd'
assert_equal([['a','b'],['c','d']], @yamldbm.to_a)
assert_equal([['a','b'],['c','d']], @yamldbm.to_a.sort)
end
def test_to_hash
@ -97,8 +97,8 @@ module Psych
def test_shift
@yamldbm['a'] = 'b'
@yamldbm['c'] = 'd'
assert_equal(['a','b'], @yamldbm.shift)
assert_equal(['c','d'], @yamldbm.shift)
assert_equal([['a','b'], ['c','d']],
[@yamldbm.shift, @yamldbm.shift].sort)
assert_nil @yamldbm.shift
end
@ -166,7 +166,7 @@ module Psych
assert_equal [], @yamldbm.values
@yamldbm['a'] = 'b'
@yamldbm['c'] = 'd'
assert_equal ['b','d'], @yamldbm.values
assert_equal ['b','d'], @yamldbm.values.sort
end
def test_values_at

View file

@ -48,7 +48,7 @@ module Syck
def test_to_a
@yamldbm['a'] = 'b'
@yamldbm['c'] = 'd'
assert_equal([['a','b'],['c','d']], @yamldbm.to_a)
assert_equal([['a','b'],['c','d']], @yamldbm.to_a.sort)
end
def test_to_hash
@ -97,8 +97,8 @@ module Syck
def test_shift
@yamldbm['a'] = 'b'
@yamldbm['c'] = 'd'
assert_equal(['a','b'], @yamldbm.shift)
assert_equal(['c','d'], @yamldbm.shift)
assert_equal([['a','b'], ['c','d']],
[@yamldbm.shift, @yamldbm.shift].sort)
assert_nil @yamldbm.shift
end
@ -166,7 +166,7 @@ module Syck
assert_equal [], @yamldbm.values
@yamldbm['a'] = 'b'
@yamldbm['c'] = 'd'
assert_equal ['b','d'], @yamldbm.values
assert_equal ['b','d'], @yamldbm.values.sort
end
def test_values_at