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
537 537
    assert_nothing_raised { $= = nil }
538 538
  end
539 539

  
540
  def test_KCODE_warning
541
    assert_warning(/no longer effective/) { $KCODE = nil }
542
    assert_warning(/no longer effective/) { $= = nil }
543
  end
544

  
540 545
  def test_match_setter
541 546
    /foo/ =~ "foo"
542 547
    m = $~
543
-