diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-23 15:34:31 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-23 15:34:31 +0000 |
commit | 25fc9d25f72d2773cae49b23fe4db65cd9c567f9 (patch) | |
tree | 76f5b870b25db5f6be089b94933146d6cee39d56 /test/ruby/test_m17n_comb.rb | |
parent | d4f83d22618c5e140bc71e88928f7ad37784f08a (diff) | |
download | ruby-25fc9d25f72d2773cae49b23fe4db65cd9c567f9.tar.gz |
fix previous change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_m17n_comb.rb')
-rw-r--r-- | test/ruby/test_m17n_comb.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/ruby/test_m17n_comb.rb b/test/ruby/test_m17n_comb.rb index 4c52107a6d..fdc9ccc57f 100644 --- a/test/ruby/test_m17n_comb.rb +++ b/test/ruby/test_m17n_comb.rb @@ -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 |