diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-06 03:22:56 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-06 03:22:56 +0000 |
| commit | 6a3bb427e6db6c17bd192414006c725d1f2aa11d (patch) | |
| tree | d7c07a001d698abc0288bdc8d413ffe1c2a3d2d2 /test | |
| parent | 3759c6a0e77a1a89e8325c2633ca250bb5597aef (diff) | |
| download | ruby-6a3bb427e6db6c17bd192414006c725d1f2aa11d.tar.gz ruby-6a3bb427e6db6c17bd192414006c725d1f2aa11d.tar.xz ruby-6a3bb427e6db6c17bd192414006c725d1f2aa11d.zip | |
* string.c (rb_str_comparable): string comparison should be
transitive. [ruby-dev:36484]
* test/ruby/test_m17n_comb.rb (TestM17NComb#test_str_eq): test
updated.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
| -rw-r--r-- | test/ruby/test_m17n_comb.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/ruby/test_m17n_comb.rb b/test/ruby/test_m17n_comb.rb index 05e45d23c..b5208f44f 100644 --- a/test/ruby/test_m17n_comb.rb +++ b/test/ruby/test_m17n_comb.rb @@ -320,9 +320,7 @@ class TestM17NComb < Test::Unit::TestCase desc_eq = "#{encdump s1} == #{encdump s2}" if a(s1) == a(s2) and (s1.ascii_only? && s2.ascii_only? or - s1.encoding == s2.encoding or - s1.encoding == (enc = Encoding.find("ASCII-8BIT")) or - s2.encoding == enc) then + s1.encoding == s2.encoding) then assert(s1 == s2, desc_eq) assert(!(s1 != s2)) assert_equal(0, s1 <=> s2) |
