1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
This commit is contained in:
Benoit Daloze 2022-01-10 16:29:54 +01:00
parent 8abfc10605
commit 4053e8ba0d
42 changed files with 470 additions and 84 deletions

View file

@ -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