diff options
author | Benoit Daloze <eregontp@gmail.com> | 2023-10-30 13:49:46 +0100 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2023-10-30 13:49:46 +0100 |
commit | ab4781b64d945e962575f2eac20b72185235d23b (patch) | |
tree | 9c4456926c1616b0417db0b389371d578876a136 /spec/ruby/shared | |
parent | 14fa5e39d72c84d3e12e10dc5d77a6e6200c10f5 (diff) | |
download | ruby-ab4781b64d945e962575f2eac20b72185235d23b.tar.gz |
Update to ruby/spec@bd7017f
Diffstat (limited to 'spec/ruby/shared')
-rw-r--r-- | spec/ruby/shared/string/start_with.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/ruby/shared/string/start_with.rb b/spec/ruby/shared/string/start_with.rb index 91fc50c4cd..4b947a3bbf 100644 --- a/spec/ruby/shared/string/start_with.rb +++ b/spec/ruby/shared/string/start_with.rb @@ -70,7 +70,13 @@ describe :start_with, shared: true do $1.should be_nil end - ruby_bug "#19784", ""..."3.3" do + ruby_version_is ""..."3.3" do + it "does not check that we are not matching part of a character" do + "\xC3\xA9".send(@method).should.start_with?("\xC3") + end + end + + ruby_version_is "3.3" do # #19784 it "checks that we are not matching part of a character" do "\xC3\xA9".send(@method).should_not.start_with?("\xC3") end |