ruby/test/-ext-/string
Jean Boussier 83f57ca3d2 String.new(capacity:) don't substract termlen
[Bug #20585]

This was changed in 36a06efdd9f0604093dccbaf96d4e2cb17874dc8 because
`String.new(1024)` would end up allocating `1025` bytes, but the problem
with this change is that the caller may be trying to right size a String.

So instead, we should just better document the behavior of `capacity:`.
2024-06-19 15:11:07 +02:00
..
test_capacity.rb String.new(capacity:) don't substract termlen 2024-06-19 15:11:07 +02:00
test_coderange.rb
test_cstr.rb Transition shape when object's capacity changes 2022-11-10 10:11:34 -05:00
test_ellipsize.rb
test_enc_associate.rb
test_enc_str_buf_cat.rb Scan the coderange in the given encoding 2021-06-26 16:05:15 +09:00
test_external_new.rb
test_fstring.rb [Bug #20322] Fix rb_enc_interned_str_cstr null encoding 2024-03-03 10:43:35 +00:00
test_interned_str.rb Fix rb_interned_str_* functions to not assume static strings 2020-11-30 17:33:28 +09:00
test_modify_expand.rb
test_nofree.rb
test_normalize.rb
test_qsort.rb
test_rb_str_dup.rb [Feature #18239] Implement VWA for strings 2021-10-25 13:26:23 -04:00
test_set_len.rb Add rb_str_resize coderange test 2024-06-13 18:27:02 +02:00
test_too_many_dummy_encodings.rb Remove --disable-gems for assert_separately 2023-08-03 09:11:08 +09:00