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

* Add test for Enumerable#none? [fix GH-950] Patch by @yui-knk

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
hsbt 2015-07-01 01:55:03 +00:00
parent a672fd8be3
commit 8430f93b8f
3 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Wed Jul 1 10:54:56 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
* Add test for Enumerable#none? [fix GH-950] Patch by @yui-knk
Wed Jul 1 09:30:36 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* struct.c (struct_set_members): hide internal back_members

1
enum.c
View file

@ -1401,6 +1401,7 @@ DEFINE_ENUMFUNCS(none)
* [].none? #=> true
* [nil].none? #=> true
* [nil, false].none? #=> true
* [nil, false, true].none? #=> false
*/
static VALUE
enum_none(VALUE obj)

View file

@ -265,6 +265,7 @@ class TestEnumerable < Test::Unit::TestCase
assert([].none?)
assert([nil].none?)
assert([nil,false].none?)
assert(![nil,false,true].none?)
end
def test_min