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

* test/ruby/test_lambda.rb (TestLambdaParameters::test_lambda_as_iterator):

-> style block no longer available.  [ruby-dev:28958]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2006-07-04 18:10:38 +00:00
parent 845d5d651d
commit 8b1d611da4
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Wed Jul 5 01:12:19 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* test/ruby/test_lambda.rb (TestLambdaParameters::test_lambda_as_iterator):
-> style block no longer available. [ruby-dev:28958]
Tue Jul 4 21:48:56 2006 NAKAMURA Usaku <usa@ruby-lang.org> Tue Jul 4 21:48:56 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* ruby.c (proc_options): supress warning on DOSISH. * ruby.c (proc_options): supress warning on DOSISH.

View file

@ -47,7 +47,7 @@ class TestLambdaParameters < Test::Unit::TestCase
def test_lambda_as_iterator def test_lambda_as_iterator
a = 0 a = 0
2.times ->(_){ a += 1 } 2.times(&->(_){ a += 1 })
assert_equal(a, 2) assert_equal(a, 2)
end end
end end