mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@226cfdc
This commit is contained in:
parent
8abfc10605
commit
4053e8ba0d
42 changed files with 470 additions and 84 deletions
|
@ -61,9 +61,17 @@ describe "Proc#<<" do
|
|||
g = proc { |x| x + x }
|
||||
lambda_proc = -> x { x }
|
||||
|
||||
# lambda << proc
|
||||
(f << g).is_a?(Proc).should == true
|
||||
(f << g).should_not.lambda?
|
||||
|
||||
# lambda << lambda
|
||||
(f << lambda_proc).is_a?(Proc).should == true
|
||||
(f << lambda_proc).should.lambda?
|
||||
|
||||
# proc << lambda
|
||||
(g << f).is_a?(Proc).should == true
|
||||
(g << f).should.lambda?
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue