Project

General

Profile

Misc #11770 » 0001-Add-test-cases-for-KCODE-warning.patch

yui-knk (Kaneko Yuichiro), 12/04/2015 02:10 AM

View differences:

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 = $~
(1-1/2)