summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-08-05 04:35:28 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-08-05 04:35:28 +0000
commitc3a750ebee3960f5ee47bcba4e60d8c3585eb843 (patch)
treee4d530fc5ca4a55652fb4d95ae728544f57d051c /test
parent55148a250101b662fde32919f14afcf2dcdc801d (diff)
* lib/xmlrpc/client.rb, lib/xmlrpc/server.rb: should use
String#bytesize instead of String#size. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/xmlrpc/test_webrick_server.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/xmlrpc/test_webrick_server.rb b/test/xmlrpc/test_webrick_server.rb
index d3aa9cd..e53cc96 100644
--- a/test/xmlrpc/test_webrick_server.rb
+++ b/test/xmlrpc/test_webrick_server.rb
@@ -1,3 +1,5 @@
+# coding: utf-8
+
require 'test/unit'
require 'webrick'
require_relative 'webrick_testing'
@@ -125,5 +127,8 @@ class Test_Webrick < Test::Unit::TestCase
ok, param = @s.call2('test.add', 1, 2, 3)
assert_equal false, ok
assert_equal(-99, param.faultCode)
+
+ # multibyte characters
+ assert_equal "あいうえおかきくけこ", @s.call('test.add', "あいうえお", "かきくけこ")
end
end