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 53b3be5d58 Fix parsing of mutiple assignment with rescue modifier
Single assignment with rescue modifier applies rescue to the RHS:

  a = raise rescue 1 # a = (raise rescue 1)

Previously, multiple assignment with rescue modifier applied rescue
to the entire expression:

  a, b = raise rescue [1, 2] # (a, b = raise) rescue [1, 2]

This makes multiple assignment with rescue modifier consistent with
single assignment with rescue modifier, applying rescue to the RHS:

  a, b = raise rescue [1, 2] # a, b = (raise rescue [1, 2])

Implements [Feature #8239]
Fixes [Bug #8279]
2019-08-09 09:25:30 -07:00
..
enc Removed excess spaces 2019-06-28 16:02:47 +09: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 enumerator.c: force hash values fixable 2019-04-08 03:26:27 +00:00
test_arity.rb
test_array.rb Removing duplicated assertions on test_array.rb - MINUS method 2019-08-06 09:01:05 +09:00
test_assignment.rb Fix parsing of mutiple assignment with rescue modifier 2019-08-09 09:25:30 -07:00
test_ast.rb Suppress "literal in condition" warnings 2019-06-30 11:49:40 +09:00
test_autoload.rb Suppress void context warning in verbose mode 2019-06-28 12:33:24 +09:00
test_backtrace.rb Fix a wrong lineno in backtrace for cfunc 2019-03-21 05:59:14 +00:00
test_basicinstructions.rb
test_beginendblock.rb eval.c: clear internal errinfo 2019-03-10 06:46:28 +00:00
test_bignum.rb Removed unused variables 2019-06-30 08:45:01 +09:00
test_call.rb
test_case.rb
test_class.rb introduce RCLASS_CLONED flag for inline cache. 2019-08-09 11:05:11 +09:00
test_clone.rb
test_comparable.rb Ignore warnings about mismatched indentations. 2019-06-01 15:23:24 +03:00
test_complex.rb Check exception flag as a bool [Bug #15987] 2019-07-11 20:04:29 +09:00
test_complex2.rb
test_complexrational.rb Implement Complex#<=> 2019-06-19 10:50:58 -07:00
test_condition.rb
test_const.rb Revert "Make constant assignments more conforming to JIS X 3017:2013 11.4.2.2.3" 2019-06-16 23:00:05 +09:00
test_continuation.rb
test_default_gems.rb
test_defined.rb
test_dir.rb dir.c: fix Dir.glob starts with brace 2019-03-21 13:32:03 +00:00
test_dir_m17n.rb
test_econv.rb
test_encoding.rb Assertion for r67226 2019-03-12 12:04:03 +00:00
test_enum.rb Adding Enumerable#filter_map 2019-05-23 14:39:16 +09:00
test_enumerator.rb Make size on an infinite each_slice enumerator return Infinity 2019-06-02 20:00:35 -07:00
test_env.rb Renamed to get rid of name clash 2019-07-02 09:31:32 +09:00
test_eval.rb Fix dangling path name from fstring 2019-08-03 13:48:29 +09:00
test_exception.rb Removed duplicate highlighting 2019-07-15 19:39:47 +09:00
test_fiber.rb restore timeout 2019-08-09 17:48:47 +09:00
test_file.rb Always mark the string returned by File.realpath as tainted 2019-04-28 10:47:51 +09:00
test_file_exhaustive.rb test/ruby/test_file_exhaustive.rb: suppress method-redefined warning 2019-07-31 11:46:56 +09:00
test_fixnum.rb
test_flip.rb Suppress unused variable warnings 2019-06-30 11:45:37 +09:00
test_float.rb test/ruby/test_float.rb: suppress an overflow warning 2019-07-31 14:35:54 +09:00
test_fnmatch.rb Split test_fnmatch 2018-12-17 05:57:15 +00:00
test_gc.rb Suppress unused variable warnings 2019-06-30 11:45:37 +09:00
test_gc_compact.rb Skip instead of return 2019-06-30 11:45:38 +09:00
test_hash.rb check hash_hint is different. 2019-08-01 05:21:42 +09:00
test_ifunless.rb
test_integer.rb Fixed duplicate test name 2019-07-12 17:52:22 +09:00
test_integer_comb.rb
test_io.rb Compact ensure clause and rename variables to fix alignment 2019-08-01 09:12:08 +09:00
test_io_m17n.rb IO#set_encoding_by_bom 2019-06-13 18:13:05 +09:00
test_iseq.rb Iseq#to_binary: Add support for NoMatchingPatternError and TypeError 2019-08-09 01:29:53 +09:00
test_iterator.rb Prefer block_given? to iterator? 2019-01-18 09:52:50 +00:00
test_jit.rb Revert "Remove opt_nil_p test to remove warning for now" 2019-08-02 23:29:58 +09:00
test_key_error.rb
test_keyword.rb compile.c: fix the corner case of rest and keyword arguments 2019-03-14 09:04:57 +00:00
test_lambda.rb add tests for orphan/not-orphan proc/lambda. 2019-07-15 14:17:27 +09:00
test_lazy_enumerator.rb Remove a duplicate test 2019-06-21 18:02:24 +09:00
test_literal.rb Suppress unused variable warnings 2019-06-30 11:45:37 +09:00
test_m17n.rb Check that String#scrub block does not modify receiver 2019-07-02 08:34:01 -07:00
test_m17n_comb.rb Update String#crypt tests to work on OpenBSD 2019-06-01 10:50:06 -07:00
test_marshal.rb marshal.c: check instance variable count 2019-07-01 16:20:03 +09:00
test_math.rb
test_metaclass.rb
test_method.rb Method#inspect with source location. 2019-07-14 15:46:07 +09:00
test_mixed_unicode_escapes.rb
test_module.rb introduce RCLASS_CLONED flag for inline cache. 2019-08-09 11:05:11 +09:00
test_not.rb
test_notimp.rb test/ruby/test_notimp.rb: Use EnvUtil.timeout for timeout scale factor 2019-05-26 18:24:06 +09:00
test_numeric.rb Removed unused variables 2019-06-30 08:45:01 +09:00
test_object.rb Make Object#singleton_methods work correctly for singleton classes of objects 2019-07-23 09:46:09 -07:00
test_objectspace.rb Revert self-referencing finalizer warning [Feature #15974] 2019-07-04 04:01:06 +09:00
test_optimization.rb Suppress "statement not reached" warning 2019-06-30 11:53:02 +09:00
test_pack.rb
test_parse.rb Message to pipe should end with a newline 2019-07-07 18:18:22 +09:00
test_path.rb
test_pattern_matching.rb Fixed an assertion 2019-06-30 11:45:37 +09:00
test_pipe.rb
test_primitive.rb
test_proc.rb add tests for orphan/not-orphan proc/lambda. 2019-07-15 14:17:27 +09:00
test_process.rb Give up stabilizing TestProcess on Travis osx 2019-08-06 00:48:00 +09:00
test_rand.rb
test_range.rb range.c (inspect_range): omit beginless "nil" 2019-05-23 00:48:32 +09:00
test_rational.rb Check exception flag as a bool [Bug #15987] 2019-07-11 20:04:29 +09:00
test_rational2.rb
test_readpartial.rb
test_refinement.rb Suppress unused variable warnings 2019-06-30 11:45:37 +09:00
test_regexp.rb Escape control codes in regexp warning message 2019-06-29 19:07:25 +09:00
test_require.rb Should require without wrapper module 2019-08-09 00:12:54 +09:00
test_rubyoptions.rb Restore support library for only test files. 2019-07-09 21:04:07 +09:00
test_rubyvm.rb
test_rubyvm_mjit.rb Restore support library for only test files. 2019-07-09 21:04:07 +09:00
test_settracefunc.rb solve "duplicate :raise event" in require too [Bug #15877] 2019-08-08 21:27:39 +09:00
test_signal.rb Wait for the helper thread to terminate 2019-06-30 11:41:10 +09:00
test_sleep.rb
test_sprintf.rb
test_sprintf_comb.rb
test_string.rb Occupy match data 2019-07-27 21:54:34 +09:00
test_stringchar.rb
test_struct.rb struct.c: force hash values fixable 2019-04-08 05:06:43 +00:00
test_super.rb
test_symbol.rb vm_args.c: search symbol proc in super classes 2018-12-30 21:42:52 +00:00
test_syntax.rb Warn if using return at top-level with an argument 2019-07-29 09:01:23 -07:00
test_system.rb Removed unused variables 2019-06-30 08:45:01 +09:00
test_thread.rb Removed unused variables 2019-06-28 23:21:37 +09:00
test_thread_cv.rb
test_thread_queue.rb Producer threads check is the primary condition 2019-06-30 20:19:21 +09:00
test_threadgroup.rb
test_time.rb Relaxed delta of nanosec from Float time 2019-07-13 09:48:12 +09:00
test_time_tz.rb Removed unused variables and methods 2019-07-29 13:29:42 +09:00
test_trace.rb
test_transcode.rb add encoding conversion from/to CESU-8 2019-07-14 10:58:50 +09:00
test_undef.rb
test_unicode_escape.rb
test_variable.rb Include inspect value of object in FrozenError messages 2019-06-04 19:25:03 -07:00
test_vm_dump.rb
test_weakmap.rb Frozen objects in WeakMap 2019-06-23 00:31:16 +09:00
test_whileuntil.rb
test_yield.rb
ut_eof.rb