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
nagachika d24cce8e7f merge revision(s) bf1a6771f305ea286a3ae575676924551c03e857,c1463625555b061a2b94c3b6c5581730b482a285: [Backport #17012] [Backport #17014]
Fix non-numeric exclusive Range#minmax bug

	The implementation of Range#minmax added in d5c60214c4 causes the
	following incorrect behaviour:

	  ('a'...'c').minmax => ["a", ["a", "b"]]

	instead of

	  ('a'...'c').minmax => ["a", "b"]

	This is because the C implementation of Range#minmax (range_minmax)
	directly delegates to the C implementation of Range#min (range_min) and
	Range#max (range_max), without changing the execution context.

	Range#max's C implementation (range_max), when given a non-numeric
	exclusive range, delegates to super, which is meant to call
	Enumerable#max. However, because range_max is called directly by
	range_minmax, super calls Enumerable#minmax instead, causing the
	incorrect nesting.

	Perhaps it is possible to change the execution context in an optimized
	manner, but the simplest solution seems to be to just explicitly
	delegate from Range#minmax to Range#min and Range#max.

	Use static variables in Range#minmax
2020-07-19 12:16:37 +09:00
..
enc
allpairs.rb
beginmainend.rb
bug-11928.rb
bug-13526.rb
lbtest.rb
marshaltestlib.rb
sentence.rb Fixed misspellings 2019-12-20 09:32:42 +09:00
test_alias.rb Warn on access/modify of $SAFE, and remove effects of modifying $SAFE 2019-11-18 01:00:25 +02:00
test_argf.rb Pass keyword arguments to IOs properly [Bug #16639] 2020-03-13 23:27:19 +09:00
test_arithmetic_sequence.rb
test_arity.rb
test_array.rb Deprecate taint/trust and related methods, and make the methods no-ops 2019-11-18 01:00:25 +02:00
test_assignment.rb Fixed misspellings 2019-12-20 09:32:42 +09:00
test_ast.rb Squashed commit of the following: [Backport #16516] 2020-03-13 21:51:06 +09:00
test_autoload.rb Do not load files in build directory 2019-12-11 12:35:51 +09:00
test_backtrace.rb
test_basicinstructions.rb
test_beginendblock.rb
test_bignum.rb
test_call.rb
test_case.rb
test_class.rb Prohibit calling undefined allocator [Bug #16297] 2019-11-06 11:17:09 +09:00
test_clone.rb
test_comparable.rb Raise on end-exclusive ranges [Feature #14784] 2019-10-26 12:52:50 +09:00
test_complex.rb Make Kernel#{Pathname,BigDecimal,Complex} return argument if given correct type 2019-09-21 16:10:37 -07:00
test_complex2.rb
test_complexrational.rb
test_condition.rb
test_const.rb Avoid top-level search for nested constant reference from nil in defined? 2019-11-13 15:36:58 +09:00
test_continuation.rb
test_default_gems.rb Skip test_validate_gemspec when tarball and git installed too 2019-11-23 01:57:19 +09:00
test_defined.rb
test_dir.rb Make test-all and test-spec runnable on Android 2019-09-09 20:24:03 +09:00
test_dir_m17n.rb Make rb_scan_args handle keywords more similar to Ruby methods (#2460) 2019-09-25 11:18:49 -07:00
test_econv.rb Deprecate taint/trust and related methods, and make the methods no-ops 2019-11-18 01:00:25 +02:00
test_encoding.rb Fixed stack overflow [Bug #16382] 2019-12-03 08:51:50 +09:00
test_enum.rb Fix memory corruption in Enumerable#reverse_each [ruby-dev:50867] [Bug #16354] 2019-11-19 15:35:14 -06:00
test_enumerator.rb Make Enumerator::Chain#each treat lambdas as lambda 2019-12-03 23:18:28 +02:00
test_env.rb Relax test strictness for error message from KeyError 2019-11-30 23:26:09 -05:00
test_eval.rb
test_exception.rb Reword keyword arguments warning messages to convey these are deprecation warnings 2019-12-23 16:47:33 -05:00
test_fiber.rb Suspend many fibers test on JIT for now 2019-11-13 09:38:22 -08:00
test_file.rb Use a temporary file for chown test 2019-12-18 13:35:58 +09:00
test_file_exhaustive.rb Revert "Should return "." for File.extname("file.") also on Windows" 2019-12-23 11:54:25 +09:00
test_fixnum.rb
test_flip.rb Revert "Remove warnings of flip-flop deprecation from tests and specs" 2019-08-29 11:10:45 +09:00
test_float.rb
test_fnmatch.rb Fix for wrong fnmatch patttern 2019-10-01 19:19:56 +09:00
test_gc.rb Fix passing actual object_id to finalizer 2019-11-08 12:41:05 -08:00
test_gc_compact.rb Fixed a segfault GC.verify_compaction_references 2020-01-30 10:01:46 +09:00
test_hash.rb check ar_table after #hash call 2020-03-26 21:18:26 +09:00
test_ifunless.rb
test_integer.rb bignum.c (estimate_initial_sqrt): prevent integer overflow 2019-10-21 21:24:21 +09:00
test_integer_comb.rb
test_io.rb Reword keyword arguments warning messages to convey these are deprecation warnings 2019-12-23 16:47:33 -05:00
test_io_m17n.rb IO#set_encoding_by_bom should err when encoding is already set 2019-12-15 23:13:16 +09:00
test_iseq.rb catch up last commit. 2019-11-18 10:24:38 +09:00
test_iterator.rb
test_jit.rb Prevent unloading methods used in root_fiber while calling another Fiber (#2939) 2020-03-15 19:35:24 +09:00
test_key_error.rb
test_keyword.rb Make ruby2_keywords methods correctly handle **{} optimization 2020-03-15 19:35:24 +09:00
test_lambda.rb Kernel#lambda: return forwarded block as non-lambda proc 2019-12-21 09:08:52 -05:00
test_lazy_enumerator.rb Fix Enumerator::Lazy#with_index 2019-12-11 04:59:56 +02:00
test_literal.rb Make rb_scan_args handle keywords more similar to Ruby methods (#2460) 2019-09-25 11:18:49 -07:00
test_m17n.rb Deprecate taint/trust and related methods, and make the methods no-ops 2019-11-18 01:00:25 +02:00
test_m17n_comb.rb
test_marshal.rb Deprecate taint/trust and related methods, and make the methods no-ops 2019-11-18 01:00:25 +02:00
test_math.rb
test_metaclass.rb
test_method.rb Don't display singleton class in Method#inspect unless method defined there 2020-03-14 16:15:15 +09:00
test_mixed_unicode_escapes.rb
test_module.rb Made the warning for deprecated constants follow the category flag 2019-12-19 09:52:16 +09:00
test_not.rb
test_notimp.rb merge revision(s) a19228f878: [Backport #16979] 2020-06-27 12:29:42 +09:00
test_numeric.rb Reword keyword arguments warning messages to convey these are deprecation warnings 2019-12-23 16:47:33 -05:00
test_object.rb Deprecate taint/trust and related methods, and make the methods no-ops 2019-11-18 01:00:25 +02:00
test_objectspace.rb merge revision(s) 26c179d7e7: [Backport #17026] 2020-07-19 11:32:59 +09:00
test_optimization.rb Warn on access/modify of $SAFE, and remove effects of modifying $SAFE 2019-11-18 01:00:25 +02:00
test_pack.rb Deprecate taint/trust and related methods, and make the methods no-ops 2019-11-18 01:00:25 +02:00
test_parse.rb Fixed duplicated warning 2020-03-14 16:12:44 +09:00
test_path.rb Revert "Should return "." for File.extname("file.") also on Windows" 2019-12-23 11:54:25 +09:00
test_pattern_matching.rb Suppress an "assigned but unused variable" warning 2020-03-28 04:01:23 +09:00
test_pipe.rb
test_primitive.rb
test_proc.rb Do not autosplat when calling proc with empty keyword splat 2020-03-15 20:52:43 +09:00
test_process.rb Restart timer thread even after preparation failed 2020-02-13 13:50:57 +09:00
test_rand.rb rand(beginless_range) raise Errno::EDOM instead of TypeError 2019-12-15 14:47:36 +09:00
test_range.rb merge revision(s) bf1a6771f305ea286a3ae575676924551c03e857,c1463625555b061a2b94c3b6c5581730b482a285: [Backport #17012] [Backport #17014] 2020-07-19 12:16:37 +09:00
test_rational.rb
test_rational2.rb
test_readpartial.rb
test_refinement.rb Make prepending a refined module after inclusion not break refinements 2019-11-28 19:57:04 +09:00
test_regexp.rb Regexp in MatchData can be nil 2020-01-16 15:26:28 +09:00
test_require.rb Add the loaded feature after no exception raised 2020-03-13 22:34:09 +09:00
test_require_lib.rb Detect started threads when require only 2019-12-06 00:12:58 +09:00
test_rubyoptions.rb Ruby 2.7 backport about IRB (#2990) 2020-03-30 19:09:50 +09:00
test_rubyvm.rb
test_rubyvm_mjit.rb RubyVM::MJIT.pause(wait: true) should wait 2019-09-26 16:28:34 +09:00
test_settracefunc.rb script_compiled event on compile error. 2020-01-16 15:08:36 +09:00
test_signal.rb Deprecate taint/trust and related methods, and make the methods no-ops 2019-11-18 01:00:25 +02:00
test_sleep.rb
test_sprintf.rb
test_sprintf_comb.rb
test_string.rb Refined the warning message for $, and $; 2019-12-20 15:09:23 +09:00
test_stringchar.rb
test_struct.rb Reword keyword arguments warning messages to convey these are deprecation warnings 2019-12-23 16:47:33 -05:00
test_super.rb Make super in instance_eval in method in module raise TypeError 2019-12-12 15:50:19 +09:00
test_symbol.rb Revert "Regexp#match{?} with nil raises TypeError as String, Symbol (#1506)" 2019-12-04 06:40:54 +09:00
test_syntax.rb Squashed commit of the following: [Backport #16516] 2020-03-13 21:51:06 +09:00
test_system.rb
test_thread.rb Disable GC until VM objects get initialized [Bug #16616] 2020-03-13 21:51:06 +09:00
test_thread_cv.rb
test_thread_queue.rb MinGW on Actions (#2791) 2020-01-30 13:34:24 +09:00
test_threadgroup.rb
test_time.rb Update test to handle x32 ABI compiled Ruby on Linux 2019-10-17 12:21:47 -07:00
test_time_tz.rb Added a test for [Bug #16159] 2019-12-17 11:53:30 +09:00
test_trace.rb Deprecate taint/trust and related methods, and make the methods no-ops 2019-11-18 01:00:25 +02:00
test_transcode.rb Fixed symbol misused as ID 2020-03-14 16:00:46 +09:00
test_undef.rb
test_unicode_escape.rb
test_variable.rb Supress class variable overtaken warning when original modules are the same 2019-11-29 20:32:03 +02:00
test_vm_dump.rb
test_weakmap.rb Allow non-finalizable objects in ObjectSpace::WeakMap 2019-08-29 20:40:52 +09:00
test_whileuntil.rb
test_yield.rb
ut_eof.rb