1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test
matz c186fdb90b * enumerator.c (enumerator_next_p): should check correctly even when
e.next has not been called before.

* enumerator.c (enumerator_next): raise StopIteration (name taken
  from Python) instead of IndexError.

* enum.c (enum_zip): catch StopIteration exception.

* enumerator.c (enumerator_with_index): return Enumerator if no
  block is given.

* test/ruby/test_iterator.rb (TestIterator::test_enumerator): add
  test for enumerators.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-08 07:07:03 +00:00
..
csv
dbm
digest
drb
erb
fileutils
gdbm
io/nonblock
json * lib/json/common.rb: Ponder offering parse\! method. 2007-06-06 22:38:42 +00:00
logger
monitor
net * lib/net/http.rb (tokens): forgot to add strip. [ruby-core:11120] 2007-05-12 09:25:56 +00:00
nkf
openssl * ext/openssl/{extconf.rb,ossl_ssl_session.c}: 2007-06-18 08:56:21 +00:00
optparse
ostruct
pathname
rdoc/parsers
readline
rinda
ripper
rss * lib/rss, sample/rss, test/rss: 2007-08-05 03:03:05 +00:00
ruby * enumerator.c (enumerator_next_p): should check correctly even when 2007-08-08 07:07:03 +00:00
scanf
sdbm
soap
socket
stringio
strscan
testunit * test/testunit/collector/test_dir.rb: Fixed test/unit tests that 2007-03-20 23:29:49 +00:00
uri * generic.rb (URI::Generic::merge_path): behave as RFC 3986. 2007-08-01 03:40:08 +00:00
webrick
win32ole remove puts for debug 2007-08-07 11:01:06 +00:00
wsdl
xmlrpc
xsd
yaml
zlib
inlinetest.rb
runner.rb
test_generator.rb
test_ipaddr.rb
test_pp.rb
test_prettyprint.rb
test_set.rb
test_shellwords.rb
test_time.rb
test_tsort.rb