mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add a test of Symbol#to_proc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0beaddc4e2
commit
29934eed9d
1 changed files with 1 additions and 0 deletions
|
@ -80,5 +80,6 @@ class TestSymbol < Test::Unit::TestCase
|
|||
assert_nothing_raised(ArgumentError) { :object_id.to_proc.call([]) }
|
||||
assert_nothing_raised(ArgumentError) { :object_id.to_proc.call([1]) }
|
||||
assert_nothing_raised(ArgumentError) { :object_id.to_proc.call([1,2]) }
|
||||
assert_nothing_raised(ArgumentError) { :object_id.to_proc.call([1,[2,3]]) }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue