forked from jruby/jruby
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
require File.dirname(__FILE__) + "/../spec_helper" | ||
|
||
describe "java.util.regex.Matcher.end" do | ||
it "does not blow stack" do | ||
# See https://jira.codehaus.org/browse/JRUBY-6571 | ||
import 'java.util.regex.Pattern' | ||
import 'java.util.regex.Matcher' | ||
it "does not blow stack" do | ||
# See https://jira.codehaus.org/browse/JRUBY-6571 | ||
import 'java.util.regex.Pattern' | ||
import 'java.util.regex.Matcher' | ||
|
||
s = 'hello world' | ||
r = Pattern.compile("[eo]") | ||
m = r.matcher(s) | ||
s = 'hello world' | ||
r = Pattern.compile("[eo]") | ||
m = r.matcher(s) | ||
|
||
while m.find() | ||
lambda{ m.end(0) }.should_not raise_error | ||
end | ||
end | ||
while m.find() | ||
lambda{ m.end(0) }.should_not raise_error | ||
end | ||
end | ||
end |