1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/ruby/core/string
Jeremy Evans cfd162d535 Make String#{strip,lstrip}{,!} strip leading NUL bytes
The documentation already specifies that they strip whitespace
and defines whitespace to include null.

This wraps the new behavior in the appropriate guards in the specs,
but does not specify behavior for previous versions, because this
is a bug that could be backported.

Fixes [Bug #17467]
2021-02-20 11:17:47 +09:00
..
fixtures Update to ruby/spec@ac878ad 2020-11-27 14:55:31 +01:00
shared Update to ruby/spec@8cafaa5 2021-01-28 17:08:57 +01:00
unpack Update to ruby/spec@ac878ad 2020-11-27 14:55:31 +01:00
allocate_spec.rb
append_spec.rb
ascii_only_spec.rb
b_spec.rb
bytes_spec.rb Use Integer instead of Fixnum/Bignum 2020-12-21 01:19:55 +09:00
bytesize_spec.rb
byteslice_spec.rb
capitalize_spec.rb Make String methods return String instances when called on a subclass instance 2020-11-20 16:30:23 -08:00
case_compare_spec.rb
casecmp_spec.rb Drop support for ruby 2.4 from ruby/spec 2020-04-01 15:36:20 +09:00
center_spec.rb Make String methods return String instances when called on a subclass instance 2020-11-20 16:30:23 -08:00
chars_spec.rb
chomp_spec.rb Make String methods return String instances when called on a subclass instance 2020-11-20 16:30:23 -08:00
chop_spec.rb Make String methods return String instances when called on a subclass instance 2020-11-20 16:30:23 -08:00
chr_spec.rb
clear_spec.rb Use FrozenError instead of frozen_error_class 2020-04-01 15:36:20 +09:00
clone_spec.rb
codepoints_spec.rb
comparison_spec.rb
concat_spec.rb
count_spec.rb
crypt_spec.rb Update to ruby/spec@032ee74 2020-05-03 12:28:29 +02:00
delete_prefix_spec.rb Make String methods return String instances when called on a subclass instance 2020-11-20 16:30:23 -08:00
delete_spec.rb Make String methods return String instances when called on a subclass instance 2020-11-20 16:30:23 -08:00
delete_suffix_spec.rb Make String methods return String instances when called on a subclass instance 2020-11-20 16:30:23 -08:00
downcase_spec.rb Make String methods return String instances when called on a subclass instance 2020-11-20 16:30:23 -08:00
dump_spec.rb Make String methods return String instances when called on a subclass instance 2020-11-20 16:30:23 -08:00
dup_spec.rb
each_byte_spec.rb
each_char_spec.rb
each_codepoint_spec.rb
each_grapheme_cluster_spec.rb Drop support for ruby 2.4 from ruby/spec 2020-04-01 15:36:20 +09:00
each_line_spec.rb
element_reference_spec.rb
element_set_spec.rb Use Integer instead of Fixnum/Bignum 2020-12-21 01:19:55 +09:00
empty_spec.rb Update to ruby/spec@032ee74 2020-05-03 12:28:29 +02:00
encode_spec.rb Update to ruby/spec@9277d27 2020-09-30 12:21:48 +02:00
encoding_spec.rb
end_with_spec.rb Update to ruby/spec@e829fb0 2020-09-17 11:42:26 +02:00
eql_spec.rb
equal_value_spec.rb
force_encoding_spec.rb Use FrozenError instead of frozen_error_class 2020-04-01 15:36:20 +09:00
freeze_spec.rb
getbyte_spec.rb
grapheme_clusters_spec.rb Drop support for ruby 2.4 from ruby/spec 2020-04-01 15:36:20 +09:00
gsub_spec.rb Update to ruby/spec@ac878ad 2020-11-27 14:55:31 +01:00
hash_spec.rb
hex_spec.rb
include_spec.rb
index_spec.rb Use Integer instead of Fixnum/Bignum 2020-12-21 01:19:55 +09:00
initialize_spec.rb
insert_spec.rb Update to ruby/spec@032ee74 2020-05-03 12:28:29 +02:00
inspect_spec.rb Update to ruby/spec@032ee74 2020-05-03 12:28:29 +02:00
intern_spec.rb
length_spec.rb
lines_spec.rb
ljust_spec.rb Make String methods return String instances when called on a subclass instance 2020-11-20 16:30:23 -08:00
lstrip_spec.rb Make String#{strip,lstrip}{,!} strip leading NUL bytes 2021-02-20 11:17:47 +09:00
match_spec.rb
modulo_spec.rb Update to ruby/spec@032ee74 2020-05-03 12:28:29 +02:00
multiply_spec.rb
new_spec.rb
next_spec.rb
oct_spec.rb
ord_spec.rb Use Integer instead of Fixnum/Bignum 2020-12-21 01:19:55 +09:00
partition_spec.rb
plus_spec.rb
prepend_spec.rb Use FrozenError instead of frozen_error_class 2020-04-01 15:36:20 +09:00
replace_spec.rb
reverse_spec.rb Update to ruby/spec@032ee74 2020-05-03 12:28:29 +02:00
rindex_spec.rb Use Integer instead of Fixnum/Bignum 2020-12-21 01:19:55 +09:00
rjust_spec.rb Make String methods return String instances when called on a subclass instance 2020-11-20 16:30:23 -08:00
rpartition_spec.rb
rstrip_spec.rb Update to ruby/spec@032ee74 2020-05-03 12:28:29 +02:00
scan_spec.rb
scrub_spec.rb Update to ruby/spec@8cafaa5 2021-01-28 17:08:57 +01:00
setbyte_spec.rb Use FrozenError instead of frozen_error_class 2020-04-01 15:36:20 +09:00
size_spec.rb
slice_spec.rb Make String methods return String instances when called on a subclass instance 2020-11-20 16:30:23 -08:00
split_spec.rb Update to ruby/spec@8cafaa5 2021-01-28 17:08:57 +01:00
squeeze_spec.rb Make String methods return String instances when called on a subclass instance 2020-11-20 16:30:23 -08:00
start_with_spec.rb Update to ruby/spec@e829fb0 2020-09-17 11:42:26 +02:00
string_spec.rb
strip_spec.rb Make String#{strip,lstrip}{,!} strip leading NUL bytes 2021-02-20 11:17:47 +09:00
sub_spec.rb Make String methods return String instances when called on a subclass instance 2020-11-20 16:30:23 -08:00
succ_spec.rb
sum_spec.rb
swapcase_spec.rb Make String methods return String instances when called on a subclass instance 2020-11-20 16:30:23 -08:00
to_c_spec.rb
to_f_spec.rb
to_i_spec.rb Use Integer instead of Fixnum/Bignum 2020-12-21 01:19:55 +09:00
to_r_spec.rb
to_s_spec.rb
to_str_spec.rb
to_sym_spec.rb
tr_s_spec.rb Make String methods return String instances when called on a subclass instance 2020-11-20 16:30:23 -08:00
tr_spec.rb Make String methods return String instances when called on a subclass instance 2020-11-20 16:30:23 -08:00
try_convert_spec.rb
uminus_spec.rb Update to ruby/spec@e829fb0 2020-09-17 11:42:26 +02:00
undump_spec.rb Update to ruby/spec@032ee74 2020-05-03 12:28:29 +02:00
unicode_normalize_spec.rb
unicode_normalized_spec.rb Update to ruby/spec@032ee74 2020-05-03 12:28:29 +02:00
unpack1_spec.rb
upcase_spec.rb Make String methods return String instances when called on a subclass instance 2020-11-20 16:30:23 -08:00
uplus_spec.rb Update to ruby/spec@032ee74 2020-05-03 12:28:29 +02:00
upto_spec.rb Update to ruby/spec@4ce9f41 2020-12-27 17:35:32 +01:00
valid_encoding_spec.rb Use hex-encoded binaries instead of UTF-8 2020-11-22 22:51:28 +09:00