ruby/test
Kenichi Kamiya 7954bb056b Some Hash destructive methods ensure the receiver modifiable [Bug #17736]
refs:

* https://bugs.ruby-lang.org/issues/17736
* https://github.com/ruby/ruby/pull/4296

This commit aims to cover following methods

* Hash#select!
* Hash#filter!
* Hash#keep_if
* Hash#reject!
* Hash#delete_if

I think these are not all.

---

* Ensure the receiver is modifiable or not
* Assert the receiver is not modified
2021-03-20 20:46:15 +09:00
..
-ext- Rename RubyVM::MJIT to RubyVM::JIT 2021-01-13 22:46:51 -08:00
base64
benchmark [ruby/benchmark] Adds `Tms#to_h` 2021-02-07 23:06:17 -05:00
bigdecimal [ruby/bigdecimal] Fix for the coerce cases in divide and DoDivmod 2021-01-16 00:09:26 +09:00
cgi need to restore $stdin. 2020-03-02 13:14:38 +09:00
coverage test/coverage/test_coverage.rb: Add a test for [Bug #16967] 2020-06-20 09:28:03 +09:00
csv Rename RubyVM::MJIT to RubyVM::JIT 2021-01-13 22:46:51 -08:00
date [ruby/date] Make Ractor-compatible 2020-12-22 03:12:51 -05:00
dbm [ruby/dbm] Remove taint support 2019-10-26 07:03:33 +09:00
did_you_mean Revert "Fixed typo" 2020-10-27 23:26:38 +09:00
digest [digest] Make digest Ractor safe 2020-12-19 15:08:01 +09:00
drb Rename RubyVM::MJIT to RubyVM::JIT 2021-01-13 22:46:51 -08:00
dtrace test/dtrace/helper.rb: Etc.getgrnam may return nil on some platforms 2019-10-06 15:23:00 +09:00
erb [ruby/erb] Warn safe_level and later args even without -w 2021-01-21 13:52:02 +09:00
etc [ruby/etc] Make Ractor safe 2020-12-22 19:46:07 -05:00
excludes Revert "Skip interruptible raw mode test on Travis-CI" 2019-12-18 00:08:21 +09:00
fiber Expose scheduler as public interface & bug fixes. (#3945) 2021-02-09 19:39:56 +13:00
fiddle Oops! Add another test and fix to_proc implementation 2021-02-26 10:06:56 -08:00
fileutils Try to test with rake-13.0.2 again. 2020-12-19 16:53:18 +09:00
fixtures/fake_sorted_set_gem Import set 1.0.1 2020-12-22 21:41:44 +09:00
gdbm [ruby/gdbm] Workaround for GitHub Actions 2020-06-09 20:54:52 +09:00
io [ruby/io-wait] Declare as Ractor-safe 2021-03-07 09:54:35 +09:00
irb [ruby/irb] Don't call Ruby 2.4+'s String#pretty_print 2021-03-20 20:25:32 +09:00
json Prepare to release json-2.5.0 2020-12-22 19:44:27 +09:00
lib Rename RubyVM::MJIT to RubyVM::JIT 2021-01-13 22:46:51 -08:00
logger [ruby/logger] Consider cygwin a Windows platform 2020-12-04 20:16:00 +09:00
matrix [ruby/matrix] Add `Matrix#rotate_entries` [#19] 2021-01-21 13:22:25 -05:00
mkmf Added tests for MakeMakefile#test_egrep_cpp 2021-02-05 13:59:27 +09:00
monitor Fix MonitorMixin when the super's initialize has kwargs 2020-07-17 16:37:18 -07:00
net Fix a warning 2021-01-23 10:52:17 +09:00
nkf
objspace objspace_dump.c: tag singleton classes and reference the superclass 2021-02-04 09:53:31 -08:00
open-uri Remove the deprecated override of Kernel#open in open-uri 2020-08-16 07:41:40 -07:00
openssl test/openssl/test_config: skip tests for .include on older OpenSSL 2021-03-16 22:30:33 +09:00
optparse `LoadError` is not a subclass of `StandardError` 2019-11-29 11:25:23 +09:00
ostruct Fix method protection for modules in the ancestry chain. 2021-01-12 23:29:39 -05:00
pathname Forward keyword arguments for Pathname#each_line [Bug #17589] 2021-01-29 14:27:53 +09:00
psych [ruby/psych] Skip test_ractor.rb with ruby/psych repo 2020-12-23 19:45:54 +09:00
racc [ruby/racc] skip the failing test with JRuby 2020-11-10 21:21:07 +09:00
rdoc [ruby/rdoc] Allow empty .rdoc_options 2021-03-16 15:47:27 +09:00
readline [ruby/readline-ext] Use omit 2021-02-18 21:17:42 +09:00
reline [ruby/reline] Add a test for suppressing crash when dynamic prompt returns empty 2021-02-21 06:43:31 +09:00
resolv `fe80` should be case insensitive too 2020-11-09 16:16:30 +09:00
rinda Rename RubyVM::MJIT to RubyVM::JIT 2021-01-13 22:46:51 -08:00
ripper Fix typo [ci skip] 2021-02-19 17:27:53 +09:00
ruby Some Hash destructive methods ensure the receiver modifiable [Bug #17736] 2021-03-20 20:46:15 +09:00
rubygems [rubygems/rubygems] Remote test to check require 2021-03-08 13:47:35 +09:00
socket Fixed FD leaks 2021-03-08 10:08:40 +09:00
stringio [ruby/stringio] Check if closed in loop 2021-03-08 10:13:29 +09:00
strscan [strscan] Make strscan Ractor safe (#17) 2020-12-18 14:25:41 +09:00
syslog
uri Fakes IPSocket.getaddress in the whole method 2020-05-06 16:06:25 +09:00
win32ole Warn on access/modify of $SAFE, and remove effects of modifying $SAFE 2019-11-18 01:00:25 +02:00
yaml
zlib test_zlib(test_path_tmpfile): fix Zlib instance leak 2021-03-17 02:42:31 +09:00
runner.rb
test_abbrev.rb
test_delegate.rb Add instance_methods to class generated by DelegateClass 2020-07-09 15:01:10 -07:00
test_extlibs.rb Removed win32api 2020-11-11 09:27:36 +09:00
test_find.rb
test_forwardable.rb [ruby/forwardable] Make def_*_delegator return name of method defined (Fixes #10) 2019-12-11 20:23:53 +09:00
test_ipaddr.rb
test_mutex_m.rb [ruby/mutex_m] Fix `Mutex_m#initialize` when the super's initialize has kwargs 2020-12-04 19:53:16 +09:00
test_observer.rb
test_open3.rb [open3] only close streams if a block is passed 2020-06-18 10:00:20 -07:00
test_pp.rb Mask RubyVM-specific test 2020-03-05 16:49:27 -06:00
test_prettyprint.rb
test_prime.rb [ruby/prime] Optimize `Integer#prime?` 2020-12-09 00:40:09 -05:00
test_pstore.rb
test_pty.rb
test_rbconfig.rb Make RbConfig::CONFIG values mutable [Bug #16738] 2020-03-25 22:09:28 +09:00
test_securerandom.rb Use build_message on test_securerandom.rb (#3543) 2020-09-16 07:45:01 +09:00
test_set.rb Avoid rehashing in Hash#replace/dup/initialize_copy [Bug #16996] 2021-03-18 07:34:40 -04:00
test_shellwords.rb
test_singleton.rb
test_sorted_set.rb Import set 1.0.1 2020-12-22 21:41:44 +09:00
test_syslog.rb Update some syslog tests to absurb the format change of FreeBSD syslog 2020-03-12 15:30:20 +09:00
test_tempfile.rb Warn on access/modify of $SAFE, and remove effects of modifying $SAFE 2019-11-18 01:00:25 +02:00
test_time.rb Support %U/%u/%W/%w/%V/%g/%G formats in Time.strptime 2019-11-21 03:32:20 +02:00
test_timeout.rb
test_tmpdir.rb [ruby/tmpdir] Warn when environment variables skipped (fixes #2) 2020-09-14 18:22:37 +09:00
test_tracer.rb Use realpath to try to fix failures with symlinks 2019-11-23 11:41:27 +09:00
test_trick.rb test/test_trick.rb: fixed the position to add timeout 2020-12-25 22:23:53 +09:00
test_tsort.rb
test_unicode_normalize.rb
test_weakref.rb