summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-13 03:36:20 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-13 03:36:20 +0000
commitacd98555b59522b8f81b8feff70964e92adb902f (patch)
tree6942a4c98639acd51d6ba48c91d5b8f446ad8b95
parentc94c6a1a1604f24f8388463849094676dac49568 (diff)
move a non-combinational test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/ruby/test_m17n.rb5
-rw-r--r--test/ruby/test_m17n_comb.rb3
2 files changed, 5 insertions, 3 deletions
diff --git a/test/ruby/test_m17n.rb b/test/ruby/test_m17n.rb
index 9f1419df7d..2eace6acbf 100644
--- a/test/ruby/test_m17n.rb
+++ b/test/ruby/test_m17n.rb
@@ -1093,6 +1093,11 @@ class TestM17N < Test::Unit::TestCase
assert_equal(a, s.each_char.to_a, "[ruby-dev:33211] #{encdump s}.each_char.to_a")
end
+ def test_str_concat
+ assert_equal("A\x84\x31\xA4\x39".force_encoding("GB18030"),
+ "A".force_encoding("GB18030") << 0x8431A439)
+ end
+
def test_regexp_match
assert_equal([0,0], //.match("\xa1\xa1".force_encoding("euc-jp"),-1).offset(0))
assert_equal(0, // =~ :a)
diff --git a/test/ruby/test_m17n_comb.rb b/test/ruby/test_m17n_comb.rb
index e730f6f0e8..cf80377172 100644
--- a/test/ruby/test_m17n_comb.rb
+++ b/test/ruby/test_m17n_comb.rb
@@ -346,9 +346,6 @@ class TestM17NComb < Test::Unit::TestCase
assert_raise(Encoding::CompatibilityError) { s << s2 }
end
}
-
- assert_equal("A\x84\x31\xA4\x39".force_encoding("GB18030"),
- "A".force_encoding("GB18030") << 0x8431A439)
end
def test_str_aref