Permalink
Browse files

another merge from ruby core

  • Loading branch information...
1 parent 5a46605 commit 47690ac9f47e21e836a578ab528c8ad5ddfd4656 @tenderlove tenderlove committed Nov 1, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 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

0 comments on commit 47690ac

Please sign in to comment.