summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-11 07:57:05 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-11 07:57:05 +0000
commit18364f541b83eddd3b35fa42077f58a8782369f0 (patch)
tree0225790f16235eabcc6c402ac98fe439bccda30f
parent180bf48fea3acfcc762329ffba0fc04a9cc53600 (diff)
* test/ruby/test_transcode.rb (test_from_cp50221): fix wrong
assertion and move back. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--test/ruby/test_transcode.rb3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a76adc5c8c..ae67b3ec64 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Feb 11 16:57:03 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/ruby/test_transcode.rb (test_from_cp50221): fix wrong
+ assertion and move back.
+
Fri Feb 11 14:33:18 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/test/unit/assertions.rb (assert_no_match): alias for
diff --git a/test/ruby/test_transcode.rb b/test/ruby/test_transcode.rb
index ba7f8af059..aba79a705e 100644
--- a/test/ruby/test_transcode.rb
+++ b/test/ruby/test_transcode.rb
@@ -1388,10 +1388,11 @@ class TestTranscode < Test::Unit::TestCase
assert_equal("\u5fde", "\e$B\x7A\x21".encode("utf-8", "cp50221"))
assert_equal("\u72be", "\e$B\x7B\x21".encode("utf-8", "cp50221"))
assert_equal("\u91d7", "\e$B\x7C\x21".encode("utf-8", "cp50221"))
+ assert_equal("\xA1\xDF".force_encoding("sjis"),
+ "\e(I!_\e(B".encode("sjis","cp50220"))
end
def test_to_cp50221
- assert_equal("\e(I!_\e(B", "\xA1\xDF".encode("cp50220","sjis"))
assert_equal("\e$B!#!,\e(B".force_encoding("cp50220"),
"\xA1\xDF".encode("cp50220","sjis"))
assert_equal("\e$B%*!+%,%I%J!+%N!+%P%\\%^!+%Q%]%\"\e(B".force_encoding("cp50220"),