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

* test_lazy_enumerator: Test that map & flat_map also require a block

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
marcandre 2013-01-15 01:40:29 +00:00
parent bd407329df
commit 8892cc5a8f
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Tue Jan 15 10:40:18 2013 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
* test_lazy_enumerator: Test that map & flat_map also require a block
Tue Jan 15 09:22:47 2013 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread_pthread.c (gvl_init): Reset gvl.wait_yield explicitly when

View file

@ -370,7 +370,7 @@ EOS
end
def test_require_block
%i[select reject drop_while take_while].each do |method|
%i[select reject drop_while take_while map flat_map].each do |method|
assert_raise(ArgumentError){ [].lazy.send(method) }
end
end