1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test
Kenta Murata a86c147579
Import bigdecimal 2.0.2 (#3905)
* remove duplicated include

* Make BigDecimal#round with argument < 1 return Integer

Fixes [Bug #12780]

* Use a higher default precision for BigDecimal#power and #**

When a fractional power is given, increase the precision if the
precision isn't specified via power's second argument:

Float: increase by 15 (rough number of decimal precision in float)
BigDecimal: increase by adding similar precision modifier as done to
            calculate the base precision.
Rational: double the precision, since a BigDecimal is created, but
          the created BigDecimal uses the same precision.

Increasing the precision for these power calculations has the obvious
tradeoff of making the calculations slower.

Fixes Ruby Bug #17264

* Use DBLE_FIG for a Float value

* Version 2.0.1

Co-authored-by: pavel <pavel.rosicky@easy.cz>
Co-authored-by: Jeremy Evans <code@jeremyevans.net>
2020-12-15 15:17:15 +09:00
..
-ext- Remove the uninitialized instance variable verbose mode warning 2020-12-10 10:16:05 -08:00
base64
benchmark
bigdecimal Import bigdecimal 2.0.2 (#3905) 2020-12-15 15:17:15 +09:00
cgi
coverage
csv [ruby/csv] Add support for \r\n with skip_lines: /...$/ again 2020-11-24 09:33:55 +09:00
date
dbm
did_you_mean Revert "Fixed typo" 2020-10-27 23:26:38 +09:00
digest
drb Guard all accesses to RubyVM::MJIT with defined?(RubyVM::MJIT) && 2020-12-04 16:45:54 +01:00
dtrace
erb Fixup 3292f4d965 2020-08-21 20:40:26 +09:00
etc
excludes
fiber Add support for non-blocking Process.wait. 2020-12-09 08:55:35 +13:00
fiddle Strip trailing spaces [ci skip] 2020-12-11 23:14:36 +09:00
fileutils Make the test suite pass on real Android/Termux environment 2020-10-12 21:26:05 +09:00
gdbm
io [ruby/io-console] Fix timeout type error (#18) 2020-10-11 02:00:24 +09:00
irb [ruby/irb] support more body argument for oneliner method definition 2020-11-22 21:00:11 +09:00
json SortedSet was removed at a3db08d7b6 2020-12-04 19:36:12 +09:00
lib Guard all accesses to RubyVM::MJIT with defined?(RubyVM::MJIT) && 2020-12-04 16:45:54 +01:00
logger [ruby/logger] Consider cygwin a Windows platform 2020-12-04 20:16:00 +09:00
matrix [ruby/matrix] Disable Ractor test 2020-12-09 04:21:00 -05:00
mkmf
monitor
net Wait testing/helper threads to terminate 2020-12-13 13:39:57 +09:00
nkf
objspace Fix ObjectSpace.dump(obj, output: :stdout) 2020-10-03 00:00:01 +09:00
open-uri Remove the deprecated override of Kernel#open in open-uri 2020-08-16 07:41:40 -07:00
openssl Revert the related commits about Tempfile.open change. 2020-09-09 21:10:48 +09:00
optparse
ostruct [lib/ostruct] Fix Marshal loading 2020-10-06 17:11:08 -04:00
pathname Make the test suite pass on real Android/Termux environment 2020-10-12 21:26:05 +09:00
psych Merge Psych-3.2.1 from ruby/psych 2020-12-14 20:13:12 +09:00
racc [ruby/racc] skip the failing test with JRuby 2020-11-10 21:21:07 +09:00
rdoc [ruby/rdoc] update all files if any file is newer 2020-09-18 14:57:58 +09:00
readline
reline Strip trailing spaces [ci skip] 2020-12-11 23:14:36 +09:00
resolv fe80 should be case insensitive too 2020-11-09 16:16:30 +09:00
rinda Guard all accesses to RubyVM::MJIT with defined?(RubyVM::MJIT) && 2020-12-04 16:45:54 +01:00
ripper Store all kinds of syntax errors [Bug #17345] 2020-11-26 20:14:34 +09:00
ruby Deprecate Random::DEFAULT 2020-12-14 20:29:50 +01:00
rubygems Prepare to release rubygems-3.2.1 and bundler-2.2.1 2020-12-15 10:54:09 +09:00
socket Add connect_timeout to TCPSocket 2020-12-10 20:52:29 +09:00
stringio [stringio] fix stringio codepoint enumerator off by one error 2020-08-27 23:41:22 +09:00
strscan
syslog
uri
win32ole
yaml
zlib [ruby/zlib] Add Zlib::Inflate#inflate :buffer keyword argument 2020-12-04 19:12:32 +09:00
runner.rb
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_prime.rb [ruby/prime] Optimize Integer#prime? 2020-12-09 00:40:09 -05:00
test_pstore.rb
test_pty.rb
test_rbconfig.rb
test_securerandom.rb Use build_message on test_securerandom.rb (#3543) 2020-09-16 07:45:01 +09:00
test_set.rb [ruby/set] Add Set#<=> 2020-12-04 19:24:22 +09:00
test_shellwords.rb
test_singleton.rb
test_syslog.rb
test_tempfile.rb
test_time.rb
test_timeout.rb
test_tmpdir.rb [ruby/tmpdir] Warn when environment variables skipped (fixes #2) 2020-09-14 18:22:37 +09:00
test_tracer.rb
test_tsort.rb
test_unicode_normalize.rb
test_weakref.rb