Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Changeset 1564

Show
Ignore:
Timestamp:
06/05/05 16:26:36 (4 years ago)
Author:
nahi
Message:

avoid test fails with Time comparison. The fail came from usec part comparison of Time and DateTime?. closes #114.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/test/wsdl/document/test_rpc.rb

    r1562 r1564  
    108108    # struct#m_datetime in a response is a DateTime even though 
    109109    # struct#m_datetime in a request is a Time. 
     110    timeformat = "%Y-%m-%dT%H:%M:%S" 
    110111    assert_equal("mystring2", ret.struct1.m_string) 
    111     assert_equal(now2, date2time(ret.struct1.m_datetime)) 
     112    assert_equal(now2.strftime(timeformat), 
     113      date2time(ret.struct1.m_datetime).strftime(timeformat)) 
    112114    assert_equal("mystring1", ret.struct_2.m_string) 
    113     assert_equal(now1, date2time(ret.struct_2.m_datetime)) 
     115    assert_equal(now1.strftime(timeformat), 
     116      date2time(ret.struct_2.m_datetime).strftime(timeformat)) 
    114117    assert_equal("attr_string", ret.xmlattr_attr_string) 
    115118    assert_equal(5, ret.xmlattr_attr_int)