ruby/test
Jeremy Evans d16b68cb22 Use Rational for Float#round with ndigits > 14
ndigits higher than 14 can result in values that are slightly too
large due to floating point limitations.  Converting to rational
for the calculation and then back to float fixes these issues.

Fixes [Bug #14635]
Fixes [Bug #17183]

Co-authored by: Yusuke Endoh <mame@ruby-lang.org>
2021-08-06 15:03:51 -07:00
..
-ext- Renamed thraed_fd_close as thread_fd 2021-07-29 21:15:04 +09:00
base64
benchmark [ruby/benchmark] Add comment about terminating newline in captions; fix test method name. 2021-04-22 11:51:37 +09:00
bigdecimal [ruby/bigdecimal] Fix for the coerce cases in divide and DoDivmod 2021-01-16 00:09:26 +09:00
cgi [ruby/cgi] Add test for escapeHTML/unescapeHTML invalid encoding fix in pure ruby version 2021-04-22 11:51:36 +09:00
coverage Check type of instruction - can be INSN or ADJUST 2021-06-23 11:34:37 -07:00
csv Rename RubyVM::MJIT to RubyVM::JIT 2021-01-13 22:46:51 -08:00
date [ruby/date] Fix comparison with Float::INFINITY 2021-07-11 20:28:21 +09:00
did_you_mean [ruby/did_you_mean] Prevent "warning: ambiguity between regexp and two divisions" 2021-07-19 10:34:38 +09:00
digest [ruby/digest] Use pend instead of skip 2021-07-28 11:48:36 +09:00
drb test/drb/test_drb.rb: Specify the host of DRbServer 2021-04-07 16:34:19 +09:00
dtrace
erb [ruby/erb] Warn safe_level and later args even without -w 2021-01-21 13:52:02 +09:00
error_highlight [ruby/error_highlight] Keep it work if paren exists after receiver 2021-07-31 22:15:16 +09:00
etc Fix leaked file descriptor in passwd test 2021-03-24 13:02:54 +09:00
excludes
fiber Fix potential hang when joining threads. 2021-08-03 22:23:48 +12:00
fiddle [ruby/fiddle] Handle#file_name results in very platform dependent 2021-07-15 09:49:56 +09:00
fileutils Try to test with rake-13.0.2 again. 2020-12-19 16:53:18 +09:00
fixtures/fake_sorted_set_gem Import set 1.0.1 2020-12-22 21:41:44 +09:00
io [ruby/io-wait] Declare as Ractor-safe 2021-03-07 09:54:35 +09:00
irb [ruby/irb] Show code page by irb_info on Windows 2021-07-16 01:55:25 +09:00
json Prepare to release json-2.5.0 2020-12-22 19:44:27 +09:00
lib Revert an accidentally commits at df86a13cc1 2021-05-17 15:28:47 +09:00
logger [ruby/logger] Consider cygwin a Windows platform 2020-12-04 20:16:00 +09:00
mkmf mkmf.rb: try linking at try_var 2021-07-08 18:18:35 +09:00
monitor Distinguish signal and timeout [Bug #16608] 2021-07-25 13:09:03 -07:00
net Fix test failure of 60b02db516 with Windows 2021-07-29 20:54:54 +09:00
nkf
objspace test/objspace/test_objspace.rb: check stderr before stdout 2021-05-14 18:07:58 +09:00
open-uri Guard for the ftp protocol feature of OpenURI 2021-05-27 14:42:11 +09:00
openssl test/openssl/test_x509cert.rb: Prevent "unused variable" warning 2021-07-19 10:57:56 +09:00
optparse [ruby/optparse] Add EditorConfig file 2021-04-28 11:56:15 +09:00
ostruct Partly picked from 20d0b8c065 2021-07-29 15:52:32 +09:00
pathname [ruby/pathname] Fix segfault of Pathname#split 2021-03-28 14:04:10 +09:00
psych [ruby/psych] require 'delegate' explicitly 2021-07-29 15:54:34 +09:00
racc [ruby/racc] Stop compressing integer lists 2021-06-25 17:23:06 +09:00
rdoc [ruby/rdoc] Fix links without paths 2021-07-05 11:34:37 +09:00
readline Show Readline::VERSION for debugging 2021-08-06 03:55:58 +09:00
reline Check the result of tigetstr 2021-08-06 13:34:25 +09:00
resolv Removed minitest/mock 2021-05-19 14:24:01 +09:00
rinda Rename RubyVM::MJIT to RubyVM::JIT 2021-01-13 22:46:51 -08:00
ripper ripper: wrap endless method in bodystmt [Bug #17869] 2021-05-21 18:28:24 +09:00
ruby Use Rational for Float#round with ndigits > 14 2021-08-06 15:03:51 -07:00
rubygems [rubygems/rubygems] Check requirements classes 2021-07-27 09:25:56 +09:00
socket test/socket/test_socket.rb: skip on Solaris 2021-07-29 13:51:43 +09:00
stringio [ruby/stringio] Check if closed in loop 2021-03-08 10:13:29 +09:00
strscan [ruby/strscan] Fix segmentation fault of StringScanner#charpos when String#byteslice returns non string value [Bug #17756] (#20) 2021-05-06 16:20:38 +09:00
syslog
uri Update to latest uri 2021-07-28 12:26:31 +02:00
win32ole
yaml Prefer qualified names under Thread 2021-06-29 11:41:10 +09:00
zlib [ruby/zlib] Synchronize access to zstream to prevent segfault in multithreaded use 2021-07-28 13:40:03 +09:00
runner.rb Fix bundled gems locations 2021-07-30 12:21:38 +09:00
test_abbrev.rb
test_delegate.rb
test_extlibs.rb Removed win32api 2020-11-11 09:27:36 +09:00
test_find.rb
test_forwardable.rb
test_ipaddr.rb
test_mutex_m.rb [ruby/mutex_m] Fix Mutex_m#initialize when the super's initialize has kwargs 2020-12-04 19:53:16 +09:00
test_observer.rb
test_open3.rb
test_pp.rb
test_prettyprint.rb
test_pstore.rb Prefer qualified names under Thread 2021-06-29 11:41:10 +09:00
test_pty.rb
test_rbconfig.rb
test_securerandom.rb
test_set.rb [ruby/set] Allow Set#intersect? and #disjoint? to accept array argument 2021-07-29 14:18:10 +09:00
test_shellwords.rb
test_singleton.rb
test_sorted_set.rb Import set 1.0.1 2020-12-22 21:41:44 +09:00
test_syslog.rb
test_tempfile.rb
test_time.rb Separate test used by test_ractor for Ractor in test_time.rb 2021-04-22 13:35:30 +09:00
test_timeout.rb [ruby/timeout] Make Timeout::Error#exception with multiple arguments not ignore arguments 2021-05-06 16:49:26 +09:00
test_tmpdir.rb [ruby/tmpdir] Make usable chars more strict 2021-04-05 21:08:57 +09:00
test_trick.rb test/test_trick.rb: fixed the position to add timeout 2020-12-25 22:23:53 +09:00
test_tsort.rb
test_unicode_normalize.rb
test_weakref.rb