Project

General

Profile

Actions

Bug #20277

closed

Remove stale `String` test conditionals

Added by nobu (Nobuyoshi Nakada) 3 months ago. Updated 2 months ago.


Description

I found three instance variables in TestString in test/ruby/test_string.rb.

These select assertions:

  • @aref_re_nth = true
    Enables String#[regexp, index] assertions.

  • @aref_re_silent = false
    Assignment to unmatched region silently fails, if true.

  • @aref_slicebang_silent = true
    Out of range argument to String#slice! returns nil, not raising an exception.

These instance variables for conditional execution have remained unchanged for nearly twenty years, since YARV merger.
It is questionable whether these behaviors can be changed anymore.

So I propose to remove these conditionals.

Actions

Also available in: Atom PDF

Like1
Like0Like0Like0