in reply to Re: unpack and byteorder - tests fail on certain platforms
in thread unpack and byteorder - tests fail on certain platforms
Only the first one is devoid of platform-dependence. Of course, a diverse pool of $original value samples should be run.$x = pack($format, $original); ok($original == unpack($format, $x), 'reversible unpack'); $x = external_platform_pack($format, $original); ok($original == unpack($format, $x), 'unpack from platform-specific source'); $x = pack($format, $original); ok($original == external_platform_unpack($format, $x), 'pack to platform-specific source');
--
[ e d @ h a l l e y . c c ]
|
---|