[ruby-cvs:67039] ko1:r59861 (trunk): Use mutable strings for mutation tests.

ko1 at ruby-lang.org ko1 at ruby-lang.org
Wed Sep 13 08:15:34 JST 2017


ko1	2017-09-13 08:15:34 +0900 (Wed, 13 Sep 2017)

  New Revision: 59861

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59861

  Log:
    Use mutable strings for mutation tests.
    
    * test/fiddle/test_func.rb (test_string): this test break String buffer
      by `strcpy` ("000" -> "123"). However, the string literal "000" with
      `frozen_string_literal: true` returns a string object from frozen
      string pool. So that after this test "000" from fstring pool becomes
      "123" (modified string). 'test/date/' uses "000" (as fstring) and tests
      are fails (we could check with `make test-all TESTS='fiddle date'`).
    
    * test/fiddle/test_function.rb: ditto.
    
    * test/fiddle/test_import.rb: ditto.

  Modified files:
    trunk/test/fiddle/test_func.rb
    trunk/test/fiddle/test_function.rb
    trunk/test/fiddle/test_import.rb


More information about the ruby-cvs mailing list