From c9dc4ae58237c765f7e8089a05f63b5de6a2ae48 Mon Sep 17 00:00:00 2001 From: nahi Date: Thu, 4 Dec 2003 04:05:51 +0000 Subject: * lib/soap/soap.rb: add SOAP::Env module for environment repository such as HTTP_PROXY. * lib/soap/property.rb: property implementation. * lib/soap/streamHandler.rb, lib/soap/wsdlDriver.rb, lib/soap/rpc/driver.rb: use soap/property.rb. * lib/wsdl/importer.rb, lib/soap/wsdlDriver.rb, lib/soap/rpc/driver.rb: use SOAP::Env. * lib/soap/netHttpClient.rb: add basic_auth, ssl_config, and cookie management interface, but ignored for now. * lib/xsd/charset.rb: add XSD::Charset.encoding= interface to set wiredump charset explicitly. it was fixed to 'utf-8' when iconv or uconv module was found. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/soap/marshal/test_marshal.rb | 2 +- test/wsdl/datetime/test_datetime.rb | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/soap/marshal/test_marshal.rb b/test/soap/marshal/test_marshal.rb index 9d5b706d4..9ae08c68d 100644 --- a/test/soap/marshal/test_marshal.rb +++ b/test/soap/marshal/test_marshal.rb @@ -369,7 +369,7 @@ module MarshalTestLib class MyTime < Time; def initialize(v, *args) super(*args); @v = v; end end def test_time # once there was a bug caused by usec overflow. try a little harder. - 100.times do + 10.times do t = Time.now marshal_equal(t, t.usec.to_s) end diff --git a/test/wsdl/datetime/test_datetime.rb b/test/wsdl/datetime/test_datetime.rb index a60d9b70a..5ac3fdc5b 100644 --- a/test/wsdl/datetime/test_datetime.rb +++ b/test/wsdl/datetime/test_datetime.rb @@ -58,8 +58,15 @@ class TestDatetime < Test::Unit::TestCase end def test_datetime - d = DateTime.now - assert_equal(d + 1, @client.now(d)) + d1 = DateTime.now + d2 = @client.now(d1) + assert_equal(d2.year, d1.year) + assert_equal(d2.month, d1.month) + assert_equal(d2.day, d1.day + 1) + assert_equal(d2.hour, d1.hour) + assert_equal(d2.min, d1.min) + assert_equal(d2.sec, d1.sec) + assert_equal(d2.sec, d1.sec) end def test_time -- cgit