Created
December 21, 2011 17:14
-
-
Save daneharrigan/1506820 to your computer and use it in GitHub Desktop.
Failing spec in MRI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# fails:Proc#eql? returns true if the bodies of self and other are identical but represented by different objects | |
# (https://github.com/rubinius/rubinius/blob/master/spec/tags/19/ruby/core/proc/eql_tags.txt#L1) | |
eva:~ dharrigan$ ruby -v | |
ruby 1.9.3p6 (2011-12-20 revision 34080) [x86_64-darwin11.2.0] | |
eva:~ dharrigan$ irb | |
1.9.3p6 :001 > foo = proc { :foo } | |
=> #<Proc:0x007fb47122eea8@(irb):1> | |
1.9.3p6 :002 > foo2 = lambda { :foo } | |
=> #<Proc:0x007fb471232648@(irb):2 (lambda)> | |
1.9.3p6 :003 > p = lambda &foo | |
=> #<Proc:0x007fb47122eea8@(irb):1> | |
1.9.3p6 :004 > p2 = proc &foo2 | |
=> #<Proc:0x007fb471232648@(irb):2 (lambda)> | |
1.9.3p6 :005 > p.eql? p2 | |
=> false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment