summaryrefslogtreecommitdiff
path: root/enum.c
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-04 10:43:38 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-04 10:43:38 +0000
commitaebf152ea4df405a1519a4bcd41707ad72f9deb7 (patch)
tree357707201d45948f88ce4233ee973d72d54802b8 /enum.c
parenta894e920aa75f10a7220bbe33873956ea26390ce (diff)
* Add test case for empty array and first method with args.
Patch by @yui-knk [fix GH-955] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enum.c')
-rw-r--r--enum.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/enum.c b/enum.c
index e704a0d..c3002cb 100644
--- a/enum.c
+++ b/enum.c
@@ -828,6 +828,7 @@ static VALUE enum_take(VALUE obj, VALUE n);
* %w[foo bar baz].first(2) #=> ["foo", "bar"]
* %w[foo bar baz].first(10) #=> ["foo", "bar", "baz"]
* [].first #=> nil
+ * [].first(10) #=> []
*
*/