summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-17 08:56:11 +0000
committerduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-17 08:56:11 +0000
commit5d64de4668078d67faae695dcf34705811153eae (patch)
treece8cb2acce79871fe0e772e6121cbac279ccdf18 /test
parentf290942991d38a5821aa5a25dd407a7fecf18b17 (diff)
downloadruby-5d64de4668078d67faae695dcf34705811153eae.tar.gz
ruby-5d64de4668078d67faae695dcf34705811153eae.tar.xz
ruby-5d64de4668078d67faae695dcf34705811153eae.zip
* enc/big5.c, enc/trans/big5.trans, enc/trans/big5-uao-tbl.rb,
test/ruby/test-transcode.rb: Added Encoding 'Big5-UAO' and transcoding for it (from Tatsuya Mizuno) (see Bug #1784) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_transcode.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/ruby/test_transcode.rb b/test/ruby/test_transcode.rb
index cd956e134..2cc23bae8 100644
--- a/test/ruby/test_transcode.rb
+++ b/test/ruby/test_transcode.rb
@@ -1867,7 +1867,12 @@ class TestTranscode < Test::Unit::TestCase
#assert_raise(Encoding::UndefinedConversionError) { "\xF9\xD6".encode("utf-8", 'Big5-HKSCS') }
check_both_ways("\u795E\u6797\u7FA9\u535A", "\xAF\xAB\xAA\x4C\xB8\x71\xB3\xD5", 'Big5-HKSCS') # 神林義博
end
-
+
+ def
+ test_Big5_UAO
+ check_both_ways("\u4e17", "\x81\x40", 'Big5-UAO') # 丗
+ end
+
def test_nothing_changed
a = "James".force_encoding("US-ASCII")
b = a.encode("Shift_JIS")