1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test
Jeremy Evans 35e467080c Make Float#floor with ndigits argument handle error
The previous implementation could result in a returned
float that is 1/(10**ndigits) too low.  First try adding
one before dividing, and if that results in a value that is
greater than the initial number, then try the original
calculation.

Spec added for ciel, but the issue doesn't appear to affect
ciel, at least not for the same number.  If the issue does
effect ciel, a similar fix could probably work for it.

Fixes [Bug #18018]
2021-07-27 11:00:45 -07:00
..
-ext- Escape unprintable chars only, without surrounding quotes 2021-07-24 14:31:41 +09:00
base64
benchmark
bigdecimal
cgi
coverage Check type of instruction - can be INSN or ADJUST 2021-06-23 11:34:37 -07:00
csv
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
drb
dtrace
erb
error_highlight [ruby/error_highlight] Fix leaked tempfiles 2021-07-16 15:25:13 +09:00
etc
excludes
fiber Fix potential hang when joining threads. 2021-07-27 18:23:30 +12:00
fiddle [ruby/fiddle] Handle#file_name results in very platform dependent 2021-07-15 09:49:56 +09:00
fileutils
fixtures/fake_sorted_set_gem
io
irb [ruby/irb] Show code page by irb_info on Windows 2021-07-16 01:55:25 +09:00
json
lib Revert an accidentally commits at df86a13cc1 2021-05-17 15:28:47 +09:00
logger
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 Promote net-smtp to the bundled gems 2021-05-27 14:42:11 +09:00
nkf
objspace
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
ostruct [lib/ostruct] Fix YAML test 2021-06-14 12:28:53 -04:00
pathname
psych [ruby/psych] Fix the test that does not work with libyaml-0.1.7 2021-06-08 08:12:27 +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 Remove half-defined Reline on LoadError 2021-07-10 21:02:50 +09:00
reline Revert "Revert "[ruby/reline] Fix failed test"" 2021-06-25 18:56:46 +09:00
resolv Removed minitest/mock 2021-05-19 14:24:01 +09:00
rinda
ripper ripper: wrap endless method in bodystmt [Bug #17869] 2021-05-21 18:28:24 +09:00
ruby Make Float#floor with ndigits argument handle error 2021-07-27 11:00:45 -07:00
rubygems [rubygems/rubygems] Check requirements classes 2021-07-27 09:25:56 +09:00
socket Get rid of sporadic WSAEACCES on Windows [ruby-dev:42661] 2021-05-21 18:26:07 +09:00
stringio
strscan
syslog
uri [ruby/uri] User assert_ractor for test case of Ractor 2021-07-27 16:57:03 +09:00
win32ole
yaml Prefer qualified names under Thread 2021-06-29 11:41:10 +09:00
zlib
runner.rb
test_abbrev.rb
test_delegate.rb
test_extlibs.rb
test_find.rb
test_forwardable.rb
test_ipaddr.rb
test_mutex_m.rb
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
test_shellwords.rb
test_singleton.rb
test_sorted_set.rb
test_syslog.rb
test_tempfile.rb
test_time.rb
test_timeout.rb
test_tmpdir.rb
test_trick.rb
test_tsort.rb
test_unicode_normalize.rb
test_weakref.rb