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:
parent
0b4500d982
commit
5cab86f3b0
1 changed files with 4 additions and 0 deletions
|
@ -153,6 +153,10 @@ class TestSymbol < Test::Unit::TestCase
|
||||||
end;
|
end;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_to_proc_lambda?
|
||||||
|
assert_predicate(:itself.to_proc, :lambda?)
|
||||||
|
end
|
||||||
|
|
||||||
def test_to_proc_call_with_symbol_proc
|
def test_to_proc_call_with_symbol_proc
|
||||||
first = 1
|
first = 1
|
||||||
bug11594 = "[ruby-core:71088] [Bug #11594] corrupted the first local variable"
|
bug11594 = "[ruby-core:71088] [Bug #11594] corrupted the first local variable"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue