<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/ruby/test_enum.rb, branch v4.0.4</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>Enumerable#all?: Stop optimizing when a given block is not optimizable</title>
<updated>2024-07-11T03:28:23+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2024-07-11T02:46:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e1238a1faba5cbb7975d08963bf0bfa50a96d2b0'/>
<id>e1238a1faba5cbb7975d08963bf0bfa50a96d2b0</id>
<content type='text'>
This is a follow up to 182822683f86c8f8d63b05765addf5a04d112aa2.

Co-Authored-By: Aaron Patterson &lt;tenderlove@ruby-lang.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is a follow up to 182822683f86c8f8d63b05765addf5a04d112aa2.

Co-Authored-By: Aaron Patterson &lt;tenderlove@ruby-lang.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Disable callcc when ASAN is enabled</title>
<updated>2024-03-04T02:07:26+00:00</updated>
<author>
<name>KJ Tsanaktsidis</name>
<email>kj@kjtsanaktsidis.id.au</email>
</author>
<published>2024-02-17T06:30:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=5621d794a2fa9293d1da489d6b0ee0e7c73c9128'/>
<id>5621d794a2fa9293d1da489d6b0ee0e7c73c9128</id>
<content type='text'>
callcc's implementation is fundamentally incompatible with ASAN. Since
callcc is deprecated and almost never used, it's probably OK to disable
callcc when ruby is compiled with ASAN.

[Bug #20273]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
callcc's implementation is fundamentally incompatible with ASAN. Since
callcc is deprecated and almost never used, it's probably OK to disable
callcc when ruby is compiled with ASAN.

[Bug #20273]
</pre>
</div>
</content>
</entry>
<entry>
<title>Add a test for svar #7225 (#7228)</title>
<updated>2023-02-02T05:47:45+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2023-02-02T05:47:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=1c5bd01363fad5460768f3a9382687bb9e0992f8'/>
<id>1c5bd01363fad5460768f3a9382687bb9e0992f8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Raise ArgumentError when calling Enumberable#inject without block or arguments</title>
<updated>2022-03-23T14:55:49+00:00</updated>
<author>
<name>Jeremy Evans</name>
<email>code@jeremyevans.net</email>
</author>
<published>2022-03-22T19:45:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=8f1c69f27ce6b3f5ed1c1cf8d2aa62aa9701d636'/>
<id>8f1c69f27ce6b3f5ed1c1cf8d2aa62aa9701d636</id>
<content type='text'>
Previously, this would work as expected if the enumerable contained
0 or 1 element, and would raise LocalJumpError otherwise. That
inconsistent behavior is likely to lead to bugs.

Fixes [Bug #18635]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, this would work as expected if the enumerable contained
0 or 1 element, and would raise LocalJumpError otherwise. That
inconsistent behavior is likely to lead to bugs.

Fixes [Bug #18635]
</pre>
</div>
</content>
</entry>
<entry>
<title>thread.c: Convert TAG_BREAK to a normal exception at thread top-level</title>
<updated>2022-01-12T18:21:45+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2022-01-12T08:29:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ae5458f228a5477383e9c00425d85d50a3867817'/>
<id>ae5458f228a5477383e9c00425d85d50a3867817</id>
<content type='text'>
[Bug #18475]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[Bug #18475]
</pre>
</div>
</content>
</entry>
<entry>
<title>Make Enumerable#each_cons return object if over size</title>
<updated>2021-11-17T03:31:35+00:00</updated>
<author>
<name>Jeremy Evans</name>
<email>code@jeremyevans.net</email>
</author>
<published>2021-11-16T21:43:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a5cff7cc5de374be05db8e99c4ca975e60558a99'/>
<id>a5cff7cc5de374be05db8e99c4ca975e60558a99</id>
<content type='text'>
This behavior changed in dfb47bbd17c3c2b8ce17dbafaf62df023b0224b2,
but only for normal exit, not for early exit.  Fix it for early
exit as well.

While here, fix example code in documentation so that it doesn't
indicate that the method returns nil.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This behavior changed in dfb47bbd17c3c2b8ce17dbafaf62df023b0224b2,
but only for normal exit, not for early exit.  Fix it for early
exit as well.

While here, fix example code in documentation so that it doesn't
indicate that the method returns nil.
</pre>
</div>
</content>
</entry>
<entry>
<title>test/ruby/test_enum.rb: Prevent a warning</title>
<updated>2021-11-09T08:30:28+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2021-11-09T08:30:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=cf50f9484af9b7aa5afd7a342026d86d1906c423'/>
<id>cf50f9484af9b7aa5afd7a342026d86d1906c423</id>
<content type='text'>
http://rubyci.s3.amazonaws.com/ubuntu/ruby-master/log/20211109T063003Z.log.html.gz
```
[ 1960/21145] TestEnumerable#test_to_a_keywords/home/chkbuild/chkbuild/tmp/build/20211109T063003Z/ruby/test/ruby/test_enum.rb:138: warning: method redefined; discarding old each
/home/chkbuild/chkbuild/tmp/build/20211109T063003Z/ruby/test/ruby/test_enum.rb:11: warning: previous definition of each was here
 = 0.00 s
```
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
http://rubyci.s3.amazonaws.com/ubuntu/ruby-master/log/20211109T063003Z.log.html.gz
```
[ 1960/21145] TestEnumerable#test_to_a_keywords/home/chkbuild/chkbuild/tmp/build/20211109T063003Z/ruby/test/ruby/test_enum.rb:138: warning: method redefined; discarding old each
/home/chkbuild/chkbuild/tmp/build/20211109T063003Z/ruby/test/ruby/test_enum.rb:11: warning: previous definition of each was here
 = 0.00 s
```
</pre>
</div>
</content>
</entry>
<entry>
<title>Delegate keywords from Enumerable#to_a to #each</title>
<updated>2021-11-05T15:22:14+00:00</updated>
<author>
<name>Jeremy Evans</name>
<email>code@jeremyevans.net</email>
</author>
<published>2021-11-05T14:08:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e83c02a768af61cd0890a75e90bcae1119d8bd93'/>
<id>e83c02a768af61cd0890a75e90bcae1119d8bd93</id>
<content type='text'>
Fixes [Bug #18289]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes [Bug #18289]
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix `Enumerable#each_cons` and `Enumerable#each_slice` to return a receiver</title>
<updated>2021-10-25T03:13:44+00:00</updated>
<author>
<name>TSUYUSATO Kitsune</name>
<email>make.just.on@gmail.com</email>
</author>
<published>2021-10-25T03:13:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=dfb47bbd17c3c2b8ce17dbafaf62df023b0224b2'/>
<id>dfb47bbd17c3c2b8ce17dbafaf62df023b0224b2</id>
<content type='text'>
Co-authored-by: Takashi Kokubun &lt;takashikkbn@gmail.com&gt;
Co-authored-by: Nobuyoshi Nakada &lt;nobu@ruby-lang.org&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Takashi Kokubun &lt;takashikkbn@gmail.com&gt;
Co-authored-by: Nobuyoshi Nakada &lt;nobu@ruby-lang.org&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Fix Enumerable#tally with some arguments pattern [Feature #17744]</title>
<updated>2021-03-27T03:55:46+00:00</updated>
<author>
<name>Kenichi Kamiya</name>
<email>kachick1@gmail.com</email>
</author>
<published>2021-03-27T03:55:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=aceb8c0b4bf37a65c78f09eaf835db72c7a47c48'/>
<id>aceb8c0b4bf37a65c78f09eaf835db72c7a47c48</id>
<content type='text'>
* Add test cases for Enumerable#tally with hash argument

* Add ruby/spec for Enumerable#tally with hash argument

* Fix Enumerable#tally does not update given frozen hash

* Add test cases for Enumerable#tally with hash convertible arguments

* Fix SEGV when Enumerable#tally takes non Hash convertible

* FIx cosmetic damage enum.c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add test cases for Enumerable#tally with hash argument

* Add ruby/spec for Enumerable#tally with hash argument

* Fix Enumerable#tally does not update given frozen hash

* Add test cases for Enumerable#tally with hash convertible arguments

* Fix SEGV when Enumerable#tally takes non Hash convertible

* FIx cosmetic damage enum.c
</pre>
</div>
</content>
</entry>
</feed>
