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
allpairs.rb
beginmainend.rb
bug-11928.rb iseq.c: mark parents of wrapped iseq 2016-01-12 15:17:19 +00:00
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 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
test_autoload.rb
test_backtrace.rb
test_basicinstructions.rb
test_beginendblock.rb
test_bignum.rb
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
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
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 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
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
test_float.rb test/ruby/test_float.rb: suppress an overflow warning 2019-07-31 14:35:54 +09:00
test_fnmatch.rb
test_gc.rb
test_gc_compact.rb
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
test_iseq.rb Iseq#to_binary: Add support for NoMatchingPatternError and TypeError 2019-08-09 01:29:53 +09:00
test_iterator.rb
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
test_lambda.rb add tests for orphan/not-orphan proc/lambda. 2019-07-15 14:17:27 +09:00
test_lazy_enumerator.rb
test_literal.rb
test_m17n.rb Check that String#scrub block does not modify receiver 2019-07-02 08:34:01 -07:00
test_m17n_comb.rb
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_numeric.rb
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
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
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
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
test_regexp.rb
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
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
test_super.rb
test_symbol.rb
test_syntax.rb Warn if using return at top-level with an argument 2019-07-29 09:01:23 -07:00
test_system.rb
test_thread.rb
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
test_vm_dump.rb
test_weakmap.rb
test_whileuntil.rb
test_yield.rb
ut_eof.rb