mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_transcode.rb (test_windows_31j): added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a4ee7c2c3b
commit
629da9d049
2 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
Mon Sep 1 14:24:14 2008 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* test/ruby/test_transcode.rb (test_windows_31j): added.
|
||||
|
||||
Mon Sep 1 14:00:04 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
|
||||
|
||||
* README.EXT (Data-types): fixed for current status.
|
||||
|
|
|
@ -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') # ×
|
||||
|
|
Loading…
Reference in a new issue