diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-23 14:37:20 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-23 14:37:20 +0000 |
| commit | 8c18bdb785830d203a5d83262fd60bb9a66bcbf7 (patch) | |
| tree | a29da5e79a4199c38ecf3b6e336b772267c78ee7 /test | |
| parent | 04ff6ff4d4b6c97400037696e24f507b4f8b58fc (diff) | |
| download | ruby-8c18bdb785830d203a5d83262fd60bb9a66bcbf7.tar.gz ruby-8c18bdb785830d203a5d83262fd60bb9a66bcbf7.tar.xz ruby-8c18bdb785830d203a5d83262fd60bb9a66bcbf7.zip | |
test refined.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
| -rw-r--r-- | test/ruby/test_m17n_comb.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_m17n_comb.rb b/test/ruby/test_m17n_comb.rb index 23b123f32..4c52107a6 100644 --- a/test/ruby/test_m17n_comb.rb +++ b/test/ruby/test_m17n_comb.rb @@ -984,7 +984,7 @@ class TestM17NComb < Test::Unit::TestCase pos2 = pos pos2 += s1.length if pos < 0 re = /\A(.{0,#{pos2}})#{Regexp.escape(s2)}/m - assert(re.match(s1), "#{re.inspect}.match(#{encdump(s1)})") + assert(enccall(re, :match, s1), "#{re.inspect}.match(#{encdump(s1)})") assert_equal($1.length, t, "#{encdump s1}.rindex(#{encdump s2}, #{pos})") else re = /#{Regexp.escape(s2)}/ @@ -1276,7 +1276,7 @@ class TestM17NComb < Test::Unit::TestCase assert_raise(ArgumentError, desc) { s1.tr(s2, s3) } next end - t = s1.tr(s2, s3) + t = enccall(s1, :tr, s2, s3) assert_operator(s1.length, :>=, t.length, desc) } end |
