diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-08-31 22:13:34 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-11-28 18:51:36 +0900 |
commit | 85aabef023e1a2e81c308ad98741137c73d4d80b (patch) | |
tree | bd71d9484743757b072a0d4d781f489daeaf84cd /test | |
parent | 3db21cf25f9c0830fafd9f72f228826515a5b566 (diff) |
[Feature #17136] Remove special behavior from $KCODE
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3483
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_regexp.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/test/ruby/test_regexp.rb b/test/ruby/test_regexp.rb index 6243ead1ff..e124fc7952 100644 --- a/test/ruby/test_regexp.rb +++ b/test/ruby/test_regexp.rb @@ -661,21 +661,11 @@ class TestRegexp < Test::Unit::TestCase assert_equal('foobazquux/foobazquux', result, bug8856) end - def test_KCODE - assert_nil($KCODE) - assert_nothing_raised { $KCODE = nil } - end - def test_ignorecase assert_equal(false, $=) assert_nothing_raised { $= = nil } end - def test_KCODE_warning - assert_warning(/variable \$KCODE is no longer effective; ignored/) { $KCODE = nil } - assert_warning(/variable \$KCODE is no longer effective/) { $KCODE = nil } - end - def test_ignorecase_warning assert_warning(/variable \$= is no longer effective; ignored/) { $= = nil } assert_warning(/variable \$= is no longer effective/) { $= } |