1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test
naruse 4870feb31a * lib/benchmark.rb: merge eregon/benchmark.
https://github.com/eregon/ruby/tree/benchmark
  patched by Benoit Daloze. [ruby-core:37593] [Bug #4940]

* lib/benchmark (Benchmark#bmbm): bmbm should be consistent with bm
  for the return value.

* test/benchmark: remove preemptive test instead of skipping
  I removed the preemptive test I wrote for Feature #4197.
  I'll add it back when the implementation will be able to satisfy it.

* lib/benchmark (Benchmark#bmbm): remove useless explicit call,
  #format is an alias of #to_s test/benchmark: add a test for
  format of long time.

* lib/benchmark: fix label width: always add 1 to ensure there is a
  space delimiter even with times over 100s
  When I asked for Feature #4197, I wanted to make delimiting spaces
  consistent for #bm and #bmbm.
  But with times over 100s, the output contains no space between the
  label and the first time (user).
  Now both ensure there is always a space, even if that means 3 spaces
  with times under 10s (because it is formatted as %10.6f)

* test/benchmark: let labels be a constant
  lib/benchmark (Benchmark#realtime): avoid creating an unused Proc
  lib/benchmark (Benchmark#benchmark): use ensure clause to restore
  STDOUT.sync, as in #bmbm

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-28 06:09:46 +00:00
..
-ext-
base64
benchmark * lib/benchmark.rb: merge eregon/benchmark. 2011-06-28 06:09:46 +00:00
bigdecimal * ext/bigdecimal/bigdecimal.c (BigMath_s_log): move BigMath.log from 2011-06-27 16:26:09 +00:00
cgi
coverage * test/coverage/test_coverage.rb: add a test for restart. a patch 2011-06-13 16:12:52 +00:00
csv * lib/csv.rb: Enhance each() to support Enumerator. 2011-05-26 15:35:06 +00:00
date * test/date/test_switch_hitter.rb: added a test. 2011-06-26 14:50:09 +00:00
dbm
digest
dl
drb fix [Bug #4409]. add DRbServer#here? 2011-06-27 15:18:22 +00:00
erb
etc * test/etc/test_etc.rb (TestEtc#test_get{pw,gr}nam): skip entries 2011-06-26 16:34:20 +00:00
fiddle
fileutils NetBSD also denies to set sticky bit against regular file. 2011-05-29 17:01:27 +00:00
gdbm
iconv
io * test/io/console/test_io_console.rb (TestIO_Console#test_noctty): 2011-06-17 22:34:07 +00:00
irb
json
logger
matrix
minitest Imported minitest 2.2.2 (r6281) 2011-06-01 22:34:09 +00:00
misc Run tests only for emacs 23+. 2011-06-15 03:28:47 +00:00
mkmf
monitor
net * lib/net/http.rb (Net::HTTP.post_form): Do not ignore query part of 2011-06-21 17:44:44 +00:00
nkf
objspace
open-uri
openssl * ext/openssl/ossl_x509name.c: Add X509::Name#hash_old as a wrapper 2011-06-23 13:51:55 +00:00
optparse
ostruct * lib/ostruct.rb (method_missing): Handle [] and []= correctly. 2011-05-27 15:59:02 +00:00
pathname * test/ruby/test_io.rb (test_copy_stream_socket): wait a child process 2011-06-15 03:36:57 +00:00
psych * ext/psych/lib/psych/visitors/to_ruby.rb: Fix cyclic references of 2011-06-21 18:22:54 +00:00
rake * lib/rake: Update rake to fix some bugs and hide deprecated features 2011-06-28 02:45:29 +00:00
rdoc * lib/rdoc: Update to RDoc 3.7 (final) 2011-06-28 02:28:25 +00:00
readline
resolv
rexml * lib/rexml/formatters/pretty.rb 2011-06-11 07:29:48 +00:00
rinda
ripper * parse.y (parser_parse_string): flush delayed token. based on a 2011-06-13 14:38:26 +00:00
rss
ruby * vm_insnhelper.c (vm_search_superclass): avoid control frame 2011-06-25 15:05:37 +00:00
rubygems * lib/rubygems/user_interaction.rb (Gem::StreamUI#tty?): IO#tty? of 2011-06-07 09:56:30 +00:00
scanf
sdbm
socket * test/socket/test_unix.rb: don't use Thread.abort_on_exception. 2011-06-13 14:12:23 +00:00
stringio
strscan
syck Copy YAML::Store to Syck::Store to keep it from yamler. 2011-06-14 01:06:41 +00:00
testunit * test/testunit/test_parallel.rb: Fix Regexp for test. 2011-06-16 11:24:23 +00:00
thread
uri * lib/net/http.rb (URI::HTTP#request_uri): return nil when the uri 2011-06-03 00:32:25 +00:00
webrick * lib/webrick/httprequest.rb (setup_forwarded_info): Parsing request 2011-06-24 11:05:59 +00:00
win32ole
xmlrpc * lib/xmlrpc/parser.rb (FaultException): fix to_s and inspect 2011-05-26 06:44:48 +00:00
zlib
inlinetest.rb
profile_test_all.rb
runner.rb
test_cmath.rb * lib/cmath.rb (CMath.cbrt): returns the principal value of the cube 2011-06-13 05:36:59 +00:00
test_delegate.rb
test_find.rb
test_ipaddr.rb
test_mathn.rb
test_mutex_m.rb
test_open3.rb
test_pp.rb
test_prettyprint.rb
test_prime.rb
test_pstore.rb
test_pty.rb
test_securerandom.rb * test/test_securerandom.rb: Add testcase. This testcase does NOT aim 2011-06-16 10:32:51 +00:00
test_set.rb
test_shellwords.rb
test_singleton.rb
test_syslog.rb
test_tempfile.rb
test_time.rb * strftime.c (rb_strftime_with_timespec): improved style consistency. 2011-05-31 03:59:36 +00:00
test_timeout.rb
test_tracer.rb
test_tsort.rb
with_different_ofs.rb