From 2076c2c3c401d9ab9324468818bbc46d4e4b870a Mon Sep 17 00:00:00 2001 From: eregon Date: Sat, 29 Dec 2018 00:22:52 +0000 Subject: Update to ruby/spec@944ea57 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- spec/ruby/core/string/scan_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'spec/ruby/core/string/scan_spec.rb') diff --git a/spec/ruby/core/string/scan_spec.rb b/spec/ruby/core/string/scan_spec.rb index 64a1c31443..ac82f5e236 100644 --- a/spec/ruby/core/string/scan_spec.rb +++ b/spec/ruby/core/string/scan_spec.rb @@ -84,6 +84,11 @@ describe "String#scan" do a = "hello".taint.scan(/./) a.each { |m| m.tainted?.should be_true } end + + # jruby/jruby#5513 + it "does not raise any errors when passed a multi-byte string" do + "あああaaaあああ".scan("あああ").should == ["あああ", "あああ"] + end end describe "String#scan with pattern and block" do -- cgit v1.2.3