Skip to content

Commit

Permalink
* test/ruby/test_transcode.rb (test_from_cp50221): fix wrong
Browse files Browse the repository at this point in the history
  assertion and move back.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Feb 11, 2011
1 parent 180bf48 commit 18364f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions 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
Expand Down
3 changes: 2 additions & 1 deletion test/ruby/test_transcode.rb
Expand Up @@ -1388,10 +1388,11 @@ def test_from_cp50221
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"),
Expand Down

0 comments on commit 18364f5

Please sign in to comment.