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.
Updated by nobu (Nobuyoshi Nakada) 9 months ago
- Description updated (diff)
- Assignee set to ko1 (Koichi Sasada)
Updated by nobu (Nobuyoshi Nakada) 9 months ago
- Status changed from Open to Closed
Applied in changeset git|76bd586330d98b8a0023ff35c7fa6014ba3a4715.
[Bug #20277] Remove stale String
test conditionals
These instance variables for conditional execution have remained
unchanged for nearly twenty years, since YARV merger.