Changeset 1136
- Timestamp:
- 12/25/03 11:32:21 (5 years ago)
- Files:
-
- trunk/test/interopR2/client.rb (modified) (3 diffs)
- trunk/test/interopR2/clientBase.rb (modified) (1 diff)
- trunk/test/soap/marshal/test_marshal.rb (modified) (2 diffs)
- trunk/test/soap/test_basetype.rb (modified) (3 diffs)
- trunk/test/xsd/test_xsd.rb (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/test/interopR2/client.rb
r925 r1136 6 6 require 'base' 7 7 require 'interopResultBase' 8 #XSD::Charset.encoding = 'EUC' 8 9 9 10 class Float … … 74 75 include SOAPBuildersInterop 75 76 77 NegativeZero = (-1.0 / (1.0 / 0.0)) 78 76 79 class << self 77 80 include SOAP … … 450 453 def test_echoFloat_special_values_negative_0 451 454 log_test 452 arg = -0.0455 arg = NegativeZero 453 456 var = drv.echoFloat(SOAPFloat.new(arg)) 454 457 assert_equal(arg, var) trunk/test/interopR2/clientBase.rb
r952 r1136 626 626 dumpTitle(title) 627 627 begin 628 arg = -0.0628 arg = (-1.0 / (1.0 / 0.0)) 629 629 var = drv.echoFloat(SOAPFloat.new(arg)) 630 630 dumpNormal(title, arg, var) trunk/test/soap/marshal/test_marshal.rb
r1030 r1136 8 8 9 9 module MarshalTestLib 10 NegativeZero = (-1.0 / (1.0 / 0.0)) 10 11 11 12 module Mod1; end … … 206 207 marshal_equal(-1.0/0.0) 207 208 marshal_equal(0.0/0.0) {|o| o.nan?} 208 marshal_equal( -0.0) {|o| 1.0/o}209 marshal_equal(NegativeZero) {|o| 1.0/o} 209 210 end 210 211 trunk/test/soap/test_basetype.rb
r1061 r1136 7 7 8 8 class TestSOAP < Test::Unit::TestCase 9 NegativeZero = (-1.0 / (1.0 / 0.0)) 10 9 11 def setup 10 12 # Nothing to do. … … 190 192 191 193 assert_equal("+0", SOAP::SOAPFloat.new(+0.0).to_s) 192 assert_equal("-0", SOAP::SOAPFloat.new( -0.0).to_s)194 assert_equal("-0", SOAP::SOAPFloat.new(NegativeZero).to_s) 193 195 assert(SOAP::SOAPFloat.new(0.0/0.0).data.nan?) 194 196 assert_equal("INF", SOAP::SOAPFloat.new(1.0/0.0).to_s) … … 255 257 256 258 assert_equal("+0", SOAP::SOAPFloat.new(+0.0).to_s) 257 assert_equal("-0", SOAP::SOAPFloat.new( -0.0).to_s)259 assert_equal("-0", SOAP::SOAPFloat.new(NegativeZero).to_s) 258 260 assert_equal("NaN", SOAP::SOAPDouble.new(0.0/0.0).to_s) 259 261 assert(SOAP::SOAPDouble.new(0.0/0.0).data.nan?) trunk/test/xsd/test_xsd.rb
r1061 r1136 7 7 8 8 class TestXSD < Test::Unit::TestCase 9 NegativeZero = (-1.0 / (1.0 / 0.0)) 10 9 11 def setup 10 12 end … … 223 225 224 226 assert_equal("+0", XSD::XSDFloat.new(+0.0).to_s) 225 assert_equal("-0", XSD::XSDFloat.new( -0.0).to_s)227 assert_equal("-0", XSD::XSDFloat.new(NegativeZero).to_s) 226 228 assert(XSD::XSDFloat.new(0.0/0.0).data.nan?) 227 229 assert_equal("INF", XSD::XSDFloat.new(1.0/0.0).to_s) … … 288 290 289 291 assert_equal("+0", XSD::XSDFloat.new(+0.0).to_s) 290 assert_equal("-0", XSD::XSDFloat.new( -0.0).to_s)292 assert_equal("-0", XSD::XSDFloat.new(NegativeZero).to_s) 291 293 assert_equal("NaN", XSD::XSDDouble.new(0.0/0.0).to_s) 292 294 assert(XSD::XSDDouble.new(0.0/0.0).data.nan?)