Misc #11770 » 0001-Add-test-cases-for-KCODE-warning.patch
test/ruby/test_regexp.rb | ||
---|---|---|
assert_nothing_raised { $= = nil }
|
||
end
|
||
def test_KCODE_warning
|
||
assert_warning(/no longer effective/) { $KCODE = nil }
|
||
assert_warning(/no longer effective/) { $= = nil }
|
||
end
|
||
def test_match_setter
|
||
/foo/ =~ "foo"
|
||
m = $~
|