ruby/test
yugui fce093432e * lib/mathn.rb (Integer): moved into prime.rb.
(Prime): ditto.

* lib/prime.rb (Integer): moved from mathn.rb.
  (Integer.each_prime): added.
  (Integer#prime?): added.
  (Prime): moved from mathn.rb.
    Its implmentation was rewritten. see [ruby-dev:35863].
    And patched by Keiju ISHITSUKA <keiju@ishitsuka.com>,
    see [ruby-dev:36128].
  (Prime.new):                     obsolete.
  (Prime.instance):                added.
  (Prime.each):                    added.
  (Prime.int_from_prime_division): added.
  (Prime.prime_division):          added.
  (Prime.prime?):                  added.
    Patch by TOYOFUKU Chikanobu
    <nobu_toyofuku at nifty.com> in [ruby-dev:36067].
  (Prime.cache):                   removed.
  (Prime.primes):                  removed.
  (Prime.primes_so_far):           removed.
  (Prime#int_from_prime_division): added.
  (Prime#prime_division):          added.
  (Prime#prime?):                  added.
  (Prime#primes):                  removed.
  (Prime#primes_so_far):           removed.
  (Prime::PseudoPrmeGenerator):    added.
  (Prime::EratosthenesGenerator):  added.
  (Prime::TrialDivisionGenerator): added.
  (Prime::Generator23):            added.
  (Prime::TrialDivision):          added.
    Extracted from the previous implementation of Prime
    by Keiju ISHITSUKA.
  (Prime::EratosthenesSieve):      added.

* lib/.document (prime.rb): added

* lib/README (prime.rb): added

* test/test_prime.rb: added.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-03 13:57:21 +00:00
..
cgi * test/cgi/test_cgi_multipart.rb: add test for multipart. 2008-08-28 00:30:40 +00:00
csv * lib/csv.rb: Fixed test failures caused by changes to Ruby. 2007-12-25 05:14:04 +00:00
dbm forgot to modify TestDBM2 and TestGDBM2. 2007-10-24 06:29:59 +00:00
digest * test/digest/test_digest_hmac.rb: added. 2006-10-25 08:16:48 +00:00
drb * test/drb/drbtest.rb (test_07_public_private_protected_missing): 2007-12-19 15:11:37 +00:00
erb * lib/erb.rb: adjust line number for magic comment. 2008-06-27 08:48:24 +00:00
etc * test/etc/test_etc.rb (test_passwd): age field may be string under 2008-07-29 12:36:28 +00:00
fileutils * test/fileutils/fileasserts.rb (assert_equal_timestamp): new assert 2007-11-21 07:40:36 +00:00
gdbm * test/gdbm/test_gdbm.rb (TestGDBM#test_s_open_no_create): failed 2008-04-23 06:32:16 +00:00
iconv * test/iconv/test_option.rb (test_ignore_option): skip if iconv 2008-08-20 23:00:01 +00:00
io/nonblock * test/io/nonblock/test_flush.rb (TestIONonblock#test_flush): 2008-08-05 09:04:13 +00:00
json * lib/rexml/doctype.rb, test/rss/test_maker_itunes.rb: replace 2008-01-26 00:42:08 +00:00
logger * lib/rexml/text.rb, lib/rubygems/open-uri.rb, lib/open-uri.rb, 2008-01-23 18:53:52 +00:00
monitor * lib/thread.rb (ConditionVariable#broadcast): use Mutex 2007-02-24 07:01:18 +00:00
net * test/net/http/test_http.rb (_test_request__file): specify encoding 2008-06-29 18:02:24 +00:00
nkf * ext/nkf/nkf-utf8/{nkf.c, utf8tbl.c}: Update nkf. 2008-01-01 15:22:25 +00:00
openssl * lib/webrick/server.rb (WEBrick::GenericServer#shutdown): 2008-08-22 11:12:06 +00:00
optparse * test/optparse/test_getopts.rb: changed the class name of test case 2006-10-03 23:53:24 +00:00
ostruct * lib/ostruct.rb: Added OpenStruct#==. 2003-09-25 00:03:11 +00:00
pathname * lib/pathname.rb (Pathname#sub_ext): new method. [ruby-list:44608] 2008-02-13 13:50:31 +00:00
rdoc * test/rdoc/test_rdoc_parser_ruby.rb (teardown): close tempfile. 2008-07-22 11:34:23 +00:00
readline * golf_prelude.rb, lib/set.rb (TC_Set#test_each), 2008-08-13 08:03:30 +00:00
rexml * lib/rexml/document.rb: limit entity expansion. 2008-09-01 13:41:38 +00:00
rinda fix failures [ruby-dev:35937]. 2008-08-30 14:53:15 +00:00
ripper * parse.y (parser_yylex): should clear parser->tokp as well. 2007-11-19 07:10:09 +00:00
rss * test/rss/: use PNG instead of zlib as binary data. 2008-07-28 12:33:44 +00:00
ruby * enc/trans/japanese.trans: new file. 2008-09-03 11:09:25 +00:00
rubygems * test/rubygems/test_gem_ext_configure_builder.rb 2008-07-31 07:39:41 +00:00
scanf * lib/scanf.rb: fixed bug involving matching literal '[' 2008-09-03 12:54:13 +00:00
sdbm * test/sdbm/test_sdbm.rb: add some tests. 2008-08-01 12:50:17 +00:00
socket * test/socket/test_tcp.rb (test_recvfrom): replace an irrelevant test 2008-07-23 14:25:32 +00:00
stringio * ext/stringio/stringio.c (strio_init): rewind when reopened. 2008-06-11 17:50:03 +00:00
strscan * test/stringio/test_stringio.rb: add tests to achieve over 95% test 2008-06-05 14:33:01 +00:00
testunit * test/testunit/collector/test_dir.rb: r15825 made it unnecessary to change 2008-06-19 18:20:30 +00:00
uri use ML ref. for assertion message. 2007-11-18 07:18:56 +00:00
webrick * lib/webrick/cgi.rb (WEBrick::CGI::Socket#eof?): added lacked method. 2008-08-17 17:33:13 +00:00
win32ole * ext/win32ole/win32ole.c (ole_invoke): WIN32OLE#[] and WIN32OLE#[]= 2008-08-27 14:43:23 +00:00
xmlrpc * lib/xmlrpc/client.rb: fix cookie handling. [ruby-dev:34403] 2008-04-15 14:10:18 +00:00
yaml * lib/yaml/store.rb (YAML::load): modified to support empty 2008-04-11 07:43:31 +00:00
zlib * test/zlib/test_zlib.rb (TestZlibDeflate#test_params): suppress a finalizer warning. 2008-07-23 01:09:50 +00:00
inlinetest.rb * test/inlinetest.rb (InlineTest.in_progname): workaround for frozen 2008-06-27 12:19:11 +00:00
runner.rb * lib/test/unit/collector.rb (collect_file): now deletes paths added 2005-02-17 04:50:49 +00:00
test_delegate.rb add a test for [ruby-dev:34808]. 2008-05-24 01:34:37 +00:00
test_ipaddr.rb * test/test_*.rb: Pathname#parent -> Pathname#dirname. 2004-01-13 04:06:31 +00:00
test_pp.rb * test/test_*.rb: Pathname#parent -> Pathname#dirname. 2004-01-13 04:06:31 +00:00
test_prettyprint.rb * test/test_*.rb: Pathname#parent -> Pathname#dirname. 2004-01-13 04:06:31 +00:00
test_prime.rb * lib/mathn.rb (Integer): moved into prime.rb. 2008-09-03 13:57:21 +00:00
test_pstore.rb * lib/pstore.rb: replaced by Hongli Lai's faster version. 2008-04-10 07:12:41 +00:00
test_set.rb * test/test_*.rb: Pathname#parent -> Pathname#dirname. 2004-01-13 04:06:31 +00:00
test_shellwords.rb * misc/ruby-mode.el (ruby-expr-beg): support $! at the end of 2005-11-30 04:50:04 +00:00
test_singleton.rb new file. 2008-07-03 12:10:30 +00:00
test_tempfile.rb add tests. 2008-01-07 15:32:07 +00:00
test_time.rb * test/test_*.rb: Pathname#parent -> Pathname#dirname. 2004-01-13 04:06:31 +00:00
test_timeout.rb add tests. 2008-01-07 15:32:07 +00:00
test_tsort.rb * test/test_*.rb: Pathname#parent -> Pathname#dirname. 2004-01-13 04:06:31 +00:00