From: Dennis Ranke Date: 2003-12-23T18:16:55+09:00 Subject: Re: Ruby 1.8.1 preview4 On Tue, 23 Dec 2003 11:55:06 +0900, NAKAMURA, Hiroshi wrote: >> On a Playstation2 running linux: > > Thanks. Very interesting. Seems to be 3 kind of errors. > > > [1, 2, 31, 32; floating point] > >> 1) Failure: >> test_SOAPDouble(SOAP::TestSOAP) [./soap/test_basetype.rb:257]: >> <"-0"> expected but was >> <"+0">. > > How does this dump? > $ ruby -e 'a = -0.0; p (1 / a > 0.0)' > > expecting false... > >> 2) Failure: >> test_SOAPFloat(SOAP::TestSOAP) >> [./soap/test_basetype.rb:161:in `test_SOAPFloat' >> ./soap/test_basetype.rb:160:in `each' >> ./soap/test_basetype.rb:160:in `test_SOAPFloat']: >> <1.4e-45> expected but was >> <0.0>. > > Hmm... Now that I come to think about it, these floating point errors would make sense if ruby used single-precision floats instead of doubles on the ps2 hardware. The ps2 hardware only implements single-precision floats (which would explain failure 2) and doesn't comform to IEEE 754 in the borderline cases like infinity or denormalized numbers (which might explain failure 1). I have no idea if this is a possibility, though. > [3-9, 28-30; socket] >> 3) Error: >> test_charset(SOAP::TestStreamHandler): >> SocketError: getaddrinfo: Temporary failure in name resolution > > $ ruby -rsocket -e 'p Socket.getaddrinfo("localhost", "http")' > > Same error? I'll try that when I'm home later today. > [10 - 27; strscan] >> test_s_mustc(TestStringScanner) [./strscan/test_stringscanner.rb:43]: >> Exception raised: >> Class: >> Message: <"strscan is not C version"> >> ---Backtrace--- >> /usr/local/lib/ruby/site_ruby/1.8/rscan.rb:18:in `must_C_version' >> ../strscan/test_stringscanner.rb:44:in `test_s_mustc' >> ../strscan/test_stringscanner.rb:43:in `assert_nothing_raised' >> ../strscan/test_stringscanner.rb:43:in `test_s_mustc' >> --------------- > > Delete /usr/local/lib/ruby/site_ruby/1.8/rscan.rb and strscan related > file > (/usr/local/lib/ruby/site_ruby/1.8/i686-linux/* or something). > Would you please try it again then? Yes, again when I'm home from work. -- exoticorn/farbrausch