1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/ruby
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
..
enc Deal with Unicode ranges in the file emoji-sequences.txt 2021-07-27 18:14:20 +09:00
allpairs.rb
beginmainend.rb
bug-11928.rb
bug-13526.rb
lbtest.rb
marshaltestlib.rb [WIP] add error_squiggle gem 2021-06-29 23:45:49 +09:00
sentence.rb
test_alias.rb
test_argf.rb
test_arithmetic_sequence.rb
test_arity.rb
test_array.rb
test_assignment.rb
test_ast.rb Make RubyVM::AbstractSyntaxTree.of raise for method/proc created in eval 2021-07-29 13:51:03 -07:00
test_autoload.rb
test_backtrace.rb Make backtrace generation work outward from current frame 2021-08-06 10:15:01 -07:00
test_basicinstructions.rb
test_beginendblock.rb
test_bignum.rb Prefer qualified names under Thread 2021-06-29 11:41:10 +09:00
test_call.rb
test_case.rb
test_class.rb
test_clone.rb
test_comparable.rb
test_complex.rb
test_complex2.rb
test_complexrational.rb
test_condition.rb
test_const.rb
test_continuation.rb
test_default_gems.rb
test_defined.rb
test_dir.rb Prefer qualified names under Thread 2021-06-29 11:41:10 +09:00
test_dir_m17n.rb
test_econv.rb
test_encoding.rb
test_enum.rb
test_enumerator.rb
test_env.rb
test_eval.rb
test_exception.rb Skip test_ensure_after_nomemoryerror 2021-07-29 18:54:20 -07:00
test_fiber.rb Replace copy coroutine with pthread implementation. 2021-07-01 11:23:03 +12:00
test_file.rb
test_file_exhaustive.rb
test_fixnum.rb
test_flip.rb
test_float.rb
test_fnmatch.rb
test_frozen_error.rb
test_gc.rb Run in a separated process to run finalizers certainly 2021-07-27 14:55:20 +09:00
test_gc_compact.rb Stop infinite object allocation to get rid of OOM killer 2021-08-02 10:18:22 +09:00
test_hash.rb Copy hash compare_by_identity setting in more cases 2021-07-15 10:04:17 -07:00
test_ifunless.rb
test_inlinecache.rb
test_insns_leaf.rb [Bug #17880] Set leaf false on opt_setinlinecache (#4565) 2021-06-14 17:34:57 -07:00
test_integer.rb Improve performance of Integer#digits 2021-07-29 15:19:12 -07:00
test_integer_comb.rb
test_io.rb Prefer qualified names under Thread 2021-06-29 11:41:10 +09:00
test_io_m17n.rb
test_iseq.rb
test_iterator.rb
test_jit.rb
test_jit_debug.rb
test_key_error.rb
test_keyword.rb
test_lambda.rb
test_lazy_enumerator.rb
test_literal.rb
test_m17n.rb
test_m17n_comb.rb
test_marshal.rb [WIP] add error_squiggle gem 2021-06-29 23:45:49 +09:00
test_math.rb Add domain check macros 2021-07-04 22:15:59 +09:00
test_memory_view.rb
test_metaclass.rb
test_method.rb Add keyrest to ruby2_keywords parameters [Bug #18011] 2021-08-03 10:56:50 +09:00
test_method_cache.rb
test_mixed_unicode_escapes.rb
test_module.rb Use Module#ancestors order in recursive constant lookup 2021-06-30 10:49:27 +09:00
test_name_error.rb Prevent "warning: ambiguity between regexp and two divisions" 2021-06-30 13:41:18 +09:00
test_nomethod_error.rb [WIP] add error_squiggle gem 2021-06-29 23:45:49 +09:00
test_not.rb
test_numeric.rb Use Rational for Float#round with ndigits > 14 2021-08-06 15:03:51 -07:00
test_object.rb [WIP] add error_squiggle gem 2021-06-29 23:45:49 +09:00
test_objectspace.rb Reenable GC at the end of test 2021-08-04 16:11:08 -04:00
test_optimization.rb
test_pack.rb
test_parse.rb test/ruby/test_parse.rb: Prevent an "unused variable" warning 2021-07-27 13:41:58 +09:00
test_path.rb
test_pattern_matching.rb One-line pattern matching is no longer experimental 2021-07-17 11:13:52 +09:00
test_pipe.rb
test_primitive.rb
test_proc.rb Remove shift of ep when computing Proc#hash 2021-06-24 12:25:33 -07:00
test_process.rb Prefer qualified names under Thread 2021-06-29 11:41:10 +09:00
test_rand.rb
test_range.rb
test_rational.rb
test_rational2.rb
test_readpartial.rb
test_refinement.rb
test_regexp.rb
test_require.rb
test_require_lib.rb
test_rubyoptions.rb
test_rubyvm.rb
test_rubyvm_jit.rb
test_settracefunc.rb Prefer qualified names under Thread 2021-06-29 11:41:10 +09:00
test_signal.rb
test_sleep.rb
test_sprintf.rb
test_sprintf_comb.rb
test_stack.rb
test_string.rb
test_stringchar.rb
test_struct.rb Make Struct#keyword_init? return nil by default [Feature #18008] 2021-07-15 22:24:02 +09:00
test_super.rb
test_symbol.rb
test_syntax.rb Add keyrest to ruby2_keywords parameters [Bug #18011] 2021-08-03 10:56:50 +09:00
test_system.rb
test_thread.rb Keep GC disabled until VM bootstrap has done [Bug #17583] 2021-07-01 18:49:17 -07:00
test_thread_cv.rb Distinguish signal and timeout [Bug #16608] 2021-07-25 13:09:03 -07:00
test_thread_queue.rb Prefer qualified names under Thread 2021-06-29 11:41:10 +09:00
test_threadgroup.rb
test_time.rb Time#getlocal tests for [Feature #17544] 2021-06-15 21:42:55 +09:00
test_time_tz.rb
test_trace.rb
test_transcode.rb - add regression tests for U+6E7F (湿) in ISO-2022-JP 2021-07-01 17:33:43 +09:00
test_undef.rb
test_unicode_escape.rb
test_variable.rb
test_vm_dump.rb
test_weakmap.rb
test_whileuntil.rb
test_yield.rb
ut_eof.rb