diff options
Diffstat (limited to 'spec/ruby/core/string/scan_spec.rb')
-rw-r--r-- | spec/ruby/core/string/scan_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
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 |