From 47690ac9f47e21e836a578ab528c8ad5ddfd4656 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 1 Nov 2011 17:59:38 -0200 Subject: another merge from ruby core --- test/psych/test_yamldbm.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/psych/test_yamldbm.rb b/test/psych/test_yamldbm.rb index c60a18f..5fd2d77 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 -- cgit v1.2.3