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 c5475f4269 Fix Range#cover? returning true for beginless ranges of different types
Previously `(2..).cover?("2"..)` was false, but
`(..2).cover?(.."2")` was true.  This changes it so both are false,
treating beginless ranges the same as endless ranges in regards to
type checks.

This also adds documentation to #cover? to describe behavior with
beginless and endless ranges, testing each documentation example,
which is how this bug was found.

Fixes [Bug #18155]
2022-06-06 09:59:22 -07:00
..
enc Avoid defining the same test class in multiple files 2022-04-22 15:00:16 -07:00
allpairs.rb
beginmainend.rb
bug-11928.rb
bug-13526.rb
lbtest.rb
marshaltestlib.rb
sentence.rb
test_alias.rb
test_argf.rb
test_arithmetic_sequence.rb
test_arity.rb
test_array.rb Add missing write barriers to Array#replace 2022-04-28 11:31:22 -04:00
test_assignment.rb
test_ast.rb
test_autoload.rb Fix GC race condition in autoload. 2022-05-26 00:17:30 +12:00
test_backtrace.rb
test_basicinstructions.rb
test_beginendblock.rb
test_bignum.rb Fix the condition when a new buffer is needed without GMP 2022-06-02 10:29:53 +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
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
test_fiber.rb
test_file.rb
test_file_exhaustive.rb Skip failing test with freebsd 2022-05-30 18:40:31 +09:00
test_fixnum.rb
test_flip.rb
test_float.rb Fix dtoa buffer overrun 2022-04-12 21:30:49 +09:00
test_fnmatch.rb
test_frozen_error.rb
test_gc.rb
test_gc_compact.rb Move GC.verify_compaction_references [Bug #18779] 2022-06-02 15:32:00 +09:00
test_hash.rb
test_ifunless.rb
test_inlinecache.rb Avoid defining the same test class in multiple files 2022-04-22 15:00:16 -07:00
test_insns_leaf.rb
test_integer.rb
test_integer_comb.rb
test_io.rb
test_io_buffer.rb Fix the order of assert_eqaul and remove unused variables 2022-05-10 10:15:27 +09:00
test_io_m17n.rb
test_iseq.rb
test_iterator.rb
test_key_error.rb
test_keyword.rb test/ruby/test_keyword.rb: Prevent warning: assigned but unused variable 2022-04-11 10:05:16 +09:00
test_lambda.rb
test_lazy_enumerator.rb
test_literal.rb
test_m17n.rb
test_m17n_comb.rb
test_marshal.rb
test_math.rb
test_memory_view.rb
test_metaclass.rb
test_method.rb
test_method_cache.rb
test_mixed_unicode_escapes.rb
test_mjit.rb Rename test_jit to test_mjit 2022-05-20 21:32:55 -07:00
test_mjit_debug.rb Rename test_jit to test_mjit 2022-05-20 21:32:55 -07:00
test_module.rb Add Module#undefined_instance_methods 2022-06-06 09:57:32 -07:00
test_name_error.rb
test_nomethod_error.rb
test_not.rb
test_numeric.rb
test_object.rb
test_objectspace.rb
test_optimization.rb
test_pack.rb
test_parse.rb Private local variables should shadow outer variables [Bug #18629] 2022-04-21 16:04:36 +09:00
test_path.rb
test_pattern_matching.rb
test_pipe.rb
test_primitive.rb
test_proc.rb Raise RuntimeError if Kernel#binding is called from a non-Ruby frame 2022-04-06 19:14:03 -07:00
test_process.rb
test_rand.rb
test_random_formatter.rb
test_range.rb Fix Range#cover? returning true for beginless ranges of different types 2022-06-06 09:59:22 -07:00
test_rational.rb
test_rational2.rb
test_readpartial.rb
test_refinement.rb
test_regexp.rb Just free compiled pattern if no space is used 2022-04-12 20:24:14 +09:00
test_require.rb Skip failing test with freebsd 2022-05-31 11:40:38 +09:00
test_require_lib.rb
test_rubyoptions.rb Rename test_jit to test_mjit 2022-05-20 21:32:55 -07:00
test_rubyvm.rb
test_rubyvm_mjit.rb Make the test class naming consistent 2022-05-20 21:34:47 -07:00
test_settracefunc.rb Fix use-after-free with interacting TracePoints 2022-05-30 13:54:22 -04: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
test_super.rb
test_symbol.rb
test_syntax.rb
test_system.rb
test_thread.rb Skip failing test with freebsd 2022-05-30 10:53:45 +09:00
test_thread_cv.rb
test_thread_queue.rb Also skip failing test with freebsd 12 2022-05-30 14:28:32 +09:00
test_threadgroup.rb
test_time.rb
test_time_tz.rb
test_trace.rb
test_transcode.rb
test_undef.rb
test_unicode_escape.rb
test_variable.rb
test_vm_dump.rb
test_weakmap.rb
test_whileuntil.rb
test_yield.rb
test_yjit.rb Rename test_jit to test_mjit 2022-05-20 21:32:55 -07:00
ut_eof.rb