Fix Hash#shift return value from Hash to Array

This commit is contained in:
Daniel Bovensiepen
2012-05-20 13:18:34 +08:00
parent c8b679bf69
commit e1e072b800
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -192,10 +192,10 @@ end
assert('Hash#shift', '15.2.13.4.24') do
a = { 'abc_key' => 'abc_value', 'cba_key' => 'cba_value' }
# TODO Broken ATM (Hash instead of Array
b = a.shift
a == { 'abc_key' => 'abc_value' }
a == { 'abc_key' => 'abc_value' } and
b == [ 'cba_key', 'cba_value' ]
end
assert('Hash#size', '15.2.13.4.25') do