1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Proc made by Symbol#to_proc should be a lambda [Bug #16260]

This commit is contained in:
Nobuyoshi Nakada 2020-02-22 00:30:55 +09:00
parent 0b4500d982
commit 5cab86f3b0
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -153,6 +153,10 @@ class TestSymbol < Test::Unit::TestCase
end;
end
def test_to_proc_lambda?
assert_predicate(:itself.to_proc, :lambda?)
end
def test_to_proc_call_with_symbol_proc
first = 1
bug11594 = "[ruby-core:71088] [Bug #11594] corrupted the first local variable"