mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
fix previous change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d4f83d2261
commit
25fc9d25f7
1 changed files with 3 additions and 2 deletions
|
@ -984,8 +984,9 @@ class TestM17NComb < Test::Unit::TestCase
|
|||
pos2 = pos
|
||||
pos2 += s1.length if pos < 0
|
||||
re = /\A(.{0,#{pos2}})#{Regexp.escape(s2)}/m
|
||||
assert(enccall(re, :match, s1), "#{re.inspect}.match(#{encdump(s1)})")
|
||||
assert_equal($1.length, t, "#{encdump s1}.rindex(#{encdump s2}, #{pos})")
|
||||
m = enccall(re, :match, s1)
|
||||
assert(m, "#{re.inspect}.match(#{encdump(s1)})")
|
||||
assert_equal(m[1].length, t, "#{encdump s1}.rindex(#{encdump s2}, #{pos})")
|
||||
else
|
||||
re = /#{Regexp.escape(s2)}/
|
||||
n = re =~ s1
|
||||
|
|
Loading…
Add table
Reference in a new issue