mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@5104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b28a2a1ad6
commit
20fa0df5cd
12 changed files with 735 additions and 320 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue