#NEWLINE# def test_each( self , space ) : #NEWLINE# #INDENT# w_res = space . execute ( '\n        x = {2 => 3, "four" => 5, 3 => 2}\n        result = []\n        x.each do |k, v|\n          result << [k, v]\n        end\n        return result\n        ' ) #NEWLINE# assert ( self . unwrap ( space , w_res ) == [ [ 2 , 3 ] , [ 'four' , 5 ] , [ 3 , 2 ] ] ) #NEWLINE# w_res = space . execute ( '\n        result = []\n        {2 => 3}.each_pair do |k, v|\n          result << [k, v]\n        end\n        return result\n        ' ) #NEWLINE# assert ( self . unwrap ( space , w_res ) == [ [ 2 , 3 ] ] )