mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Fix Hash#shift return value from Hash to Array
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user