summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_transcode.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-01 05:25:18 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-01 05:25:18 +0000
commit0744c0903fd6fe0adb85140d63ed63062625360a (patch)
treee5b8a66bb08034391efe378d1070e773dbb9970c /test/ruby/test_transcode.rb
parented86b3191fcc00df6e62f99926358e5855715ba6 (diff)
downloadruby-0744c0903fd6fe0adb85140d63ed63062625360a.tar.gz
ruby-0744c0903fd6fe0adb85140d63ed63062625360a.tar.xz
ruby-0744c0903fd6fe0adb85140d63ed63062625360a.zip
* test/ruby/test_transcode.rb (test_windows_31j): added.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_transcode.rb')
-rw-r--r--test/ruby/test_transcode.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ruby/test_transcode.rb b/test/ruby/test_transcode.rb
index d9728a287..6f578f875 100644
--- a/test/ruby/test_transcode.rb
+++ b/test/ruby/test_transcode.rb
@@ -365,6 +365,14 @@ class TestTranscode < Test::Unit::TestCase
check_both_ways("\u795E\u6797\u7FA9\u535A", "\x90\x5F\x97\xD1\x8B\x60\x94\x8E", 'shift_jis') # 神林義博
end
+ def test_windows_31j
+ check_both_ways("\u222A", "\x81\xBE", 'Windows-31J') # Union
+ check_both_ways("\uFFE2", "\x81\xCA", 'Windows-31J') # Fullwidth Not Sign
+ check_both_ways("\u2235", "\x81\xE6", 'Windows-31J') # Because
+ check_both_ways("\u2160", "\x87\x54", 'Windows-31J') # Roman Numeral One
+ check_both_ways("\u2170", "\xFA\x40", 'Windows-31J') # Small Roman Numeral One
+ end
+
def test_euc_jp
check_both_ways("\u3000", "\xA1\xA1", 'euc-jp') # full-width space
check_both_ways("\u00D7", "\xA1\xDF", 'euc-jp') # ×