Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

another merge from ruby core

  • Loading branch information...
commit 47690ac9f47e21e836a578ab528c8ad5ddfd4656 1 parent 5a46605
@tenderlove authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 test/psych/test_yamldbm.rb
View
8 test/psych/test_yamldbm.rb
@@ -48,7 +48,7 @@ def test_store_using_carret
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 @@ def test_fetch
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 @@ def test_values
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
Please sign in to comment.
Something went wrong with that request. Please try again.