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
stomar 40bc846bf8 string.c: fix String#{casecmp,casecmp?} for non-string arguments
* string.c: make String#{casecmp,casecmp?} return nil for
  non-string arguments instead of raising a TypeError.

* test/ruby/test_string.rb: add tests.

Reported by Marcus Stollsteimer.  Based on a patch by Shingo Morita.
[ruby-core:80145] [Bug #13312]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-21 19:28:48 +00:00
..
enc fix UTF-32 valid_encoding? 2017-03-09 02:04:10 +00:00
allpairs.rb
beginmainend.rb
bug-11928.rb
bug-13526.rb variable.c: cleanup waitq upon thread death 2017-05-07 04:26:37 +00:00
lbtest.rb Use qualified names 2016-08-30 06:22:30 +00:00
marshaltestlib.rb
sentence.rb
test_alias.rb
test_argf.rb io.c: ARGF fd leak 2016-12-27 07:18:27 +00:00
test_arity.rb
test_array.rb array.c: fix position in message 2017-05-12 17:23:46 +00:00
test_assignment.rb parse.y: chained assignments 2016-08-13 02:10:11 +00:00
test_autoload.rb variable.c: cleanup waitq upon thread death 2017-05-07 04:26:37 +00:00
test_backtrace.rb Use qualified names 2016-08-30 06:22:30 +00:00
test_basicinstructions.rb
test_beginendblock.rb
test_bignum.rb Rename RbConfig::Limits as RbConfig::LIMITS 2017-04-06 02:10:40 +00:00
test_call.rb compile.c: order with splatting 2016-10-22 00:52:59 +00:00
test_case.rb
test_class.rb
test_clone.rb
test_comparable.rb test_comparable.rb: fix clamp test 2016-08-13 14:04:21 +00:00
test_complex.rb get rid of ambiguous parentheses warnings 2016-11-29 16:06:54 +00:00
test_complex2.rb
test_complexrational.rb get rid of ambiguous parentheses warnings 2016-11-29 16:06:54 +00:00
test_condition.rb
test_const.rb test for [Feature #11547] 2017-01-01 09:17:10 +00:00
test_continuation.rb
test_defined.rb
test_dir.rb dir.c: err at glob failure 2017-03-27 14:57:08 +00:00
test_dir_m17n.rb test_dir_m17n.rb: read in filesystem encoding 2017-05-17 00:28:01 +00:00
test_econv.rb
test_encoding.rb
test_enum.rb Removed mathn.rb from stdlib. It's deprecated from Ruby 2.2. 2017-04-21 06:16:11 +00:00
test_enumerator.rb enumerator.c: Enumerator::Lazy#uniq 2016-07-20 08:44:08 +00:00
test_env.rb hash.c: env_name_new 2016-08-05 15:39:46 +00:00
test_eval.rb vm_eval.c: fstring instance_eval 2016-11-14 05:17:55 +00:00
test_exception.rb test_exception.rb: test_machine_stackoverflow_by_trace 2017-05-10 06:38:30 +00:00
test_fiber.rb Fiber also has same issue. [Bug #13313] 2017-03-14 06:52:44 +00:00
test_file.rb EPERM by symlink 2016-12-06 07:46:14 +00:00
test_file_exhaustive.rb test_file_exhaustive.rb: check case-sensitive fs 2017-04-22 08:19:34 +00:00
test_fixnum.rb numeric.c, complex.c: Add finite? and infinite? consistent with Float 2016-07-17 14:53:00 +00:00
test_flip.rb test_flip.rb: r56316 2016-11-16 05:25:53 +00:00
test_float.rb Merge latest dtoa.c [Bug #13545] 2017-05-19 14:14:52 +00:00
test_fnmatch.rb
test_gc.rb * gc.c (gc_mark_roots): should mark the VM object itself to mark 2016-07-13 07:08:32 +00:00
test_hash.rb refactor newhash (revision 58463 another try) [fix GH-1600] 2017-04-27 04:21:04 +00:00
test_ifunless.rb
test_integer.rb make Integer#{round,floor,ceil,truncate} always return integer 2017-05-06 19:58:12 +00:00
test_integer_comb.rb move duplicate assertions 2016-05-22 02:28:03 +00:00
test_io.rb fix off-by-one in r58806 2017-05-19 21:34:04 +00:00
test_io_m17n.rb fix UTF-32 valid_encoding? 2017-03-09 02:10:27 +00:00
test_iseq.rb iseq.c: syntax error in compile_file 2016-09-27 08:35:31 +00:00
test_iterator.rb
test_keyword.rb class.c: non-keyword hash class 2017-01-18 03:38:52 +00:00
test_lambda.rb vm_args.c: arity check of lambda 2017-03-19 01:11:12 +00:00
test_lazy_enumerator.rb
test_literal.rb refactor newhash (revision 58463 another try) [fix GH-1600] 2017-04-27 04:21:04 +00:00
test_m17n.rb refine a warning message. 2017-03-02 23:33:06 +00:00
test_m17n_comb.rb * string.c: Raise ArgumentError when invalid string is detected in 2016-06-02 01:24:52 +00:00
test_marshal.rb Rename RbConfig::Limits as RbConfig::LIMITS 2017-04-06 02:10:40 +00:00
test_math.rb math.c: tanh overflow 2016-08-02 12:40:51 +00:00
test_metaclass.rb
test_method.rb proc.c: follow the original class 2016-10-25 03:54:09 +00:00
test_mixed_unicode_escapes.rb
test_module.rb * test/ruby/test_module.rb: Method tables are not guaranteed to be 2016-11-14 19:27:24 +00:00
test_not.rb
test_notimp.rb
test_numeric.rb no longer rescue exceptions of #coerce in Integer#step 2017-04-25 11:42:31 +00:00
test_object.rb object.c: use a sized enumerator with #yield_self 2017-05-14 11:45:00 +00:00
test_objectspace.rb test_objectspace.rb: errors in a finalizer 2016-08-09 07:36:14 +00:00
test_optimization.rb compile.c: fix catch-table labels optimization 2017-05-20 02:11:24 +00:00
test_pack.rb test/ruby/test_pack.rb: fix test case added by r57187 2016-12-29 16:16:32 +00:00
test_parse.rb parse.y: make shared string modifiable 2017-05-04 06:54:11 +00:00
test_path.rb
test_pipe.rb
test_primitive.rb
test_proc.rb proc.c: preserve class name encoding in Proc#to_s 2017-03-08 07:34:13 +00:00
test_process.rb test_process.rb: compare in UTF-8 2017-05-16 14:53:04 +00:00
test_rand.rb SecureRandom should try /dev/urandom first [Bug #9569] 2017-01-20 08:00:00 +00:00
test_range.rb no longer rescue exceptions of #<=> when initializing a Range 2017-04-25 11:42:43 +00:00
test_rational.rb rational.c: float denom 2017-03-16 03:35:29 +00:00
test_rational2.rb
test_readpartial.rb
test_refinement.rb class.c: prohibit refinement module 2017-03-25 03:23:43 +00:00
test_regexp.rb parse.y: remove trace 2017-03-07 10:56:22 +00:00
test_require.rb test/ruby/test_require.rb: use squiggly heredocs 2017-03-11 11:15:05 +00:00
test_rubyoptions.rb parse.y: chomp by -l 2017-01-19 07:18:23 +00:00
test_rubyvm.rb
test_settracefunc.rb should not return. 2017-04-17 23:47:12 +00:00
test_signal.rb
test_sleep.rb
test_sprintf.rb Fix space flag when Inf/NaN and width==3 2017-04-23 01:04:39 +00:00
test_sprintf_comb.rb
test_string.rb string.c: fix String#{casecmp,casecmp?} for non-string arguments 2017-05-21 19:28:48 +00:00
test_stringchar.rb
test_struct.rb * test/ruby/test_module.rb: Method tables are not guaranteed to be 2016-11-14 19:27:24 +00:00
test_super.rb vm_eval.c: follow the original class 2016-10-29 00:39:16 +00:00
test_symbol.rb test_string.rb,test_symbol.rb: add some tests 2017-05-21 19:27:08 +00:00
test_syntax.rb parse.y: brace after literal arg 2017-05-09 17:20:00 +00:00
test_system.rb
test_thread.rb use correct synchronization. 2017-04-20 22:52:57 +00:00
test_threadgroup.rb
test_time.rb define PACKED_STRUCT_UNALIGNED correctly 2017-04-22 01:08:15 +00:00
test_time_tz.rb test: use assert_include 2016-07-26 13:02:33 +00:00
test_trace.rb test_exception.rb: test_machine_stackoverflow_by_trace 2017-05-10 06:38:30 +00:00
test_transcode.rb Update windows-1255 table 2016-10-28 15:14:32 +00:00
test_undef.rb
test_unicode_escape.rb parse.y: relax spaces 2016-12-02 02:47:11 +00:00
test_variable.rb Fix typos 2016-12-06 12:49:46 +00:00
test_weakmap.rb
test_whileuntil.rb
test_yield.rb vm_args.c: arity check of lambda 2017-03-19 01:11:12 +00:00
ut_eof.rb