summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-23 20:13:55 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-23 20:13:55 +0000
commit19cf57f21ca8e838c78caa2d19d9da36569cc929 (patch)
tree84513771aaafdcf3e9849e5f7aa01bd880d86fba /test
parentc749064f9f250d79db6ada0fe7f1f0784c183baa (diff)
* string.c (tr_trans): should associate new encoding if modified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_m17n.rb13
1 files changed, 2 insertions, 11 deletions
diff --git a/test/ruby/test_m17n.rb b/test/ruby/test_m17n.rb
index 60c7c88d18..0026816335 100644
--- a/test/ruby/test_m17n.rb
+++ b/test/ruby/test_m17n.rb
@@ -1763,11 +1763,7 @@ class TestM17N < Test::Unit::TestCase
next
end
t = s1.tr(s2, s3)
- if s3.empty?
- assert_equal(0, t.length, desc)
- next
- end
- assert_equal(s1.length, t.length, desc)
+ assert_operator(s1.length, :>=, t.length, desc)
}
end
@@ -1799,12 +1795,7 @@ class TestM17N < Test::Unit::TestCase
end
t = nil
- assert_nothing_raised(desc) { t = s1.tr_s(s2, s3) }
-
- if s3.empty?
- assert_equal(0, t.length, desc)
- next
- end
+ assert_nothing_raised(desc) { t = s1.tr_s(s1, s3) }
assert_operator(s1.length, :>=, t.length, desc)
}
end