From 42bca643c3ec41782d519c7676383f8f71e67a7a Mon Sep 17 00:00:00 2001 From: nahi Date: Fri, 28 Nov 2003 05:53:16 +0000 Subject: * lib/soap/streamHandler.rb: drop unused http parameters. * lib/soap/encodingstyle/soapHandler.rb, lib/soap/mapping/factory.rb, lib/soap/mapping/mapping.rb, lib/soap/mapping/registry.rb, lib/wsdl/soap/complexType.rb: ApacheSOAP's map support was broken under WSDL dynanic client environment. fixed. * test/wsdl/raa/*: add tests. * lib/xsd/datatypes.rb: dateTime precision bug fix (at least, I hope.) bug of soap4r. XSDDateTimeImple.to_time passed a Float to Time.local/Time.gm as an usec, and NUM2LONG(rb_num2long for Float) causes rounding error. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/soap/marshal/test_marshal.rb | 2 +- test/soap/test_basetype.rb | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'test/soap') diff --git a/test/soap/marshal/test_marshal.rb b/test/soap/marshal/test_marshal.rb index 9ae08c68d8..9d5b706d41 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. - 10.times do + 100.times do t = Time.now marshal_equal(t, t.usec.to_s) end diff --git a/test/soap/test_basetype.rb b/test/soap/test_basetype.rb index 0125f80505..a00f0f549c 100644 --- a/test/soap/test_basetype.rb +++ b/test/soap/test_basetype.rb @@ -351,6 +351,8 @@ class TestSOAP < Test::Unit::TestCase "2002-12-31T23:59:59-00:01", "2002-12-31T23:59:59-23:59", "2002-12-31T23:59:59.00000000000000000001+13:30", + "2002-12-31T23:59:59.51375Z", + "2002-12-31T23:59:59.51345+12:34", "-2002-05-18T16:52:20Z", "-4711-12-31T23:59:59Z", "-4713-01-01T12:00:00Z", @@ -414,6 +416,8 @@ class TestSOAP < Test::Unit::TestCase "23:59:59-00:01", "23:59:59-23:59", "23:59:59.00000000000000000001+13:30", + "23:59:59.51375Z", + "23:59:59.51375+12:34", "23:59:59+00:01", ] targets.each do |str| -- cgit v1.2.3