diff options
author | ayumin <ayumin@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-01 15:52:48 +0000 |
---|---|---|
committer | ayumin <ayumin@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-01 15:52:48 +0000 |
commit | aea9c733e83800909730871bdf6b1bf48016846d (patch) | |
tree | 2ff1698b6b5fab357d6682bac0b6f2845ca357d7 /test/psych | |
parent | ebbd0df5ece8a597caa5630620fc6a089a06c5ea (diff) | |
download | ruby-aea9c733e83800909730871bdf6b1bf48016846d.tar.gz |
* 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
Diffstat (limited to 'test/psych')
-rw-r--r-- | test/psych/test_yamldbm.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/psych/test_yamldbm.rb b/test/psych/test_yamldbm.rb index c60a18febe..5fd2d77ed6 100644 --- a/test/psych/test_yamldbm.rb +++ b/test/psych/test_yamldbm.rb @@ -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 |