We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd0567e commit 4b922b0Copy full SHA for 4b922b0
spec/ruby/core/proc/curry_spec.rb
@@ -124,6 +124,7 @@
124
it "raises an ArgumentError if called on a lambda that requires fewer than _arity_ arguments" do
125
lambda { @lambda_add.curry(4) }.should raise_error(ArgumentError)
126
lambda { lambda { true }.curry(1) }.should raise_error(ArgumentError)
127
+ lambda { lambda {|a, b=nil|}.curry(5) }.should raise_error(ArgumentError)
128
end
129
130
it "calls the curried proc with the arguments if _arity_ arguments have been given" do
spec/tags/ruby/core/proc/curry_tags.txt
@@ -0,0 +1 @@
1
+fails:raises an ArgumentError if called on a lambda that requires fewer than _arity_ arguments
0 commit comments