[squeak-dev] FloatTest >> testNaN5

Michael Haupt mhaupt at gmail.com
Thu Jul 30 11:38:54 UTC 2009


Hi,

working on the trunk, I want to tackle some of the failing test cases
to make that bar green. ;-)

FloatTest >> testNaN5 fails because the expression

Float nan asIEEE32BitWord printPaddedWith: $0 to: 32 base: 2

yields '11111111110000000000000000000000', but
'01111111110000000000000000000000' (note the difference in the first
character) is expected.

Looking at IEEE 754, it seems that, for NaN, that very bit may either
be 0 or 1 - so both would be correct. In that case, the test itself
would be wrong. I'd simply change it, but there should be agreement on
whether the standard is interpreted correctly.

Comments?

Best,

Michael



More information about the Squeak-dev mailing list