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 660c7e050f Fix more keyword separation issues
This fixes instance_exec and similar methods. It also fixes
Enumerator::Yielder#yield, rb_yield_block, and a couple of cases
with Proc#{<<,>>}.

This support requires the addition of rb_yield_values_kw, similar to
rb_yield_values2, for passing the keyword flag.

Unlike earlier attempts at this, this does not modify the rb_block_call_func
type or add a separate function type.  The functions of type
rb_block_call_func are called by Ruby with a separate VM frame, and we can
get the keyword flag information from the VM frame flags, so it doesn't need
to be passed as a function argument.

These changes require the following VM functions accept a keyword flag:

* vm_yield_with_cref
* vm_yield
* vm_yield_with_block
2019-09-26 19:24:58 -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 compile.c (compile_list): emit newarraykwsplat only at the last chunk 2019-09-07 16:05:15 +09:00
test_assignment.rb test/ruby/test_assignment.rb: use bug number for assert message 2019-09-21 19:23:47 +09:00
test_ast.rb Rename NODE_ARRAY to NODE_LIST to reflect its actual use cases 2019-09-07 13:56:29 +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 Show the previous definition location, 2019-08-29 13:24:00 +09:00
test_clone.rb
test_comparable.rb Ignore warnings about mismatched indentations. 2019-06-01 15:23:24 +03: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 Implement Complex#<=> 2019-06-19 10:50:58 -07:00
test_condition.rb
test_const.rb Remove support for nil::Constant 2019-08-14 09:50:14 -07:00
test_continuation.rb Give up support for cross-callcc set_trace_func. 2018-11-26 19:59:08 +00:00
test_default_gems.rb
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 Make rb_scan_args handle keywords more similar to Ruby methods (#2460) 2019-09-25 11:18:49 -07:00
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 Document and test Enumerator.produce 2019-09-12 20:18:53 +09: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 Make rb_scan_args handle keywords more similar to Ruby methods (#2460) 2019-09-25 11:18:49 -07:00
test_fiber.rb Try shrinking tested VM stack max 2019-09-06 10:34:33 +09:00
test_file.rb Add tests for File.absolute_path? 2019-09-05 20:04:50 +09:00
test_file_exhaustive.rb Make test-all and test-spec runnable on Android 2019-09-09 20:24:03 +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/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 Add compaction support to rb_ast_t 2019-09-26 15:41:46 -07: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 Kernel#open may be redefined 2019-09-27 01:13:10 +09:00
test_io_m17n.rb Make rb_scan_args handle keywords more similar to Ruby methods (#2460) 2019-09-25 11:18:49 -07:00
test_iseq.rb [EXPERIMENTAL] Expression with modifier in 2019-09-26 15:10:48 +09:00
test_iterator.rb Prefer block_given? to iterator? 2019-01-18 09:52:50 +00:00
test_jit.rb Check frozen flag on MJIT setinstancevariable 2019-09-04 11:10:21 +09:00
test_key_error.rb
test_keyword.rb Fix more keyword separation issues 2019-09-26 19:24:58 -07:00
test_lambda.rb add tests for orphan/not-orphan proc/lambda. 2019-07-15 14:17:27 +09:00
test_lazy_enumerator.rb Implement Enumerator::Lazy#eager [Feature #15901] 2019-09-04 16:16:46 +09: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 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 Allows calling a private method only with bare self 2019-09-20 22:05:54 +09:00
test_mixed_unicode_escapes.rb
test_module.rb Fix Module#name news and add a test 2019-09-26 23:29:49 +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 Make rb_scan_args handle keywords more similar to Ruby methods (#2460) 2019-09-25 11:18:49 -07: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 Fix keyword argument separation warnings in test 2019-08-30 12:39:31 -07: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 [EXPERIMENTAL] Expression with modifier in 2019-09-26 15:10:48 +09:00
test_pipe.rb
test_primitive.rb
test_proc.rb Fix more keyword separation issues 2019-09-26 19:24:58 -07:00
test_process.rb Make test-all and test-spec runnable on Android 2019-09-09 20:24:03 +09:00
test_rand.rb
test_range.rb Aseert exception at negative step for non-endless range too 2019-08-29 11:16:17 +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 Allow calling a private method with self. 2019-09-20 02:20:59 +09:00
test_regexp.rb Escape control codes in regexp warning message 2019-06-29 19:07:25 +09:00
test_require.rb Use the original require for test_race_exception 2019-08-17 15:12:46 +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 RubyVM::MJIT.pause(wait: true) should wait 2019-09-26 16:28:34 +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 Make rb_scan_args handle keywords more similar to Ruby methods (#2460) 2019-09-25 11:18:49 -07:00
test_stringchar.rb
test_struct.rb Do not turn on keyword_init for Struct subclass if keyword hash is empty 2019-09-03 14:02:24 -07: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 Changed numbered parameters semantics 2019-09-25 13:01:03 +09:00
test_system.rb Removed unused variables 2019-06-30 08:45:01 +09:00
test_thread.rb Fix keyword argument separation warnings in test 2019-08-30 12:39:31 -07:00
test_thread_cv.rb
test_thread_queue.rb Fix keyword argument separation warnings in test 2019-08-30 12:39:31 -07:00
test_threadgroup.rb
test_time.rb Separate Time#inspect from to_s and show subsec [Feature #15958] 2019-09-19 20:20:15 +09:00
test_time_tz.rb Enable more Time TZ tests on OpenBSD 2019-08-20 21:26:12 -07: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 Fix Module#class_variables for singleton classes of classes/modules 2019-09-21 16:10:18 -07: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