[#67346] Future of test suites for Ruby — Charles Oliver Nutter <headius@...>

I'll try to be brief so we can discuss all this. tl;dr: RubySpec is

19 messages 2015/01/05

[ruby-core:67691] Re: Keyword Arguments

From: Nobuyoshi Nakada <nobu@...>
Date: 2015-01-20 04:27:58 UTC
List: ruby-core #67691
On 2015/01/20 12:56, Anthony Crumley wrote:
> A block yielded a single Array calls #to_hash on the element that maps to the keyword arguments FAILED
> Expected [1, 2, 3, {}]
>  to equal [1, 2, 3, {:x=>9}]

Keyword arguments are taken from the last argument. It is `y` here.

-- 
Nobu Nakada

In This Thread