Actions
Bug #20277
closedRemove stale `String` test conditionals
Description
I found three instance variables in TestString
in test/ruby/test_string.rb.
These select assertions:
-
@aref_re_nth = true
EnablesString#[regexp, index]
assertions. -
@aref_re_silent = false
Assignment to unmatched region silently fails, if true. -
@aref_slicebang_silent = true
Out of range argument toString#slice!
returnsnil
, 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
Like1
Like0Like0Like0