7ecca26f8f (master): [Tests] Add test cases for String#getbyte and String#setbyte

0 views
Skip to first unread message

Augustin Gottlieb

unread,
Apr 19, 2026, 8:24:07 PM (2 days ago) Apr 19
to ruby...@g.ruby-lang.org
Augustin Gottlieb 2026-04-18 11:17:31 +0000 (Sat, 18 Apr 2026)

New Revision: 7ecca26f8f

https://github.com/ruby/ruby/commit/7ecca26f8f

Log:
[Tests] Add test cases for String#getbyte and String#setbyte

Cover behavior documented in rdoc but not asserted in test/ruby/test_string.rb:

* getbyte: negative index, out-of-range (positive and negative), empty string.
* setbyte: return value, negative index, out-of-range (positive and negative),
frozen string raises FrozenError.

Modified files:
test/ruby/test_string.rb
Reply all
Reply to author
Forward
0 new messages