[sldev] Unit Test Harness: Patch-2

Rahul Agarwal rahul at adroit-inc.com
Fri Mar 2 17:41:11 PST 2007


John,

Please look at test case 1 in lldatapacket_tut.cpp in unittest-2.patch.

orig F32 value = 44.44f (44.439999)
final F32 value after pack/unpack =  44.437500

The delta (0.002499) after serialization is greater than the tolerance as
per is_approx_equal.

Fail:
LLDataPackerBinaryBuffer::(un)packFixed
LLDataPackerAsciiBuffer::(un)packFixed
LLDataPackerAsciiFile::(un)packFixed
LLDataPackerAsciiBuffer::(un)packF32
LLDataPackerAsciiFile::(un)packF32

Pass:
LLDataPackerBinaryBuffer::(un)packF32

Thx
Rahul

-----Original Message-----
From: sldev-bounces at lists.secondlife.com
[mailto:sldev-bounces at lists.secondlife.com]On Behalf Of John Hurliman
Sent: Friday, March 02, 2007 12:01 PM
To: sldev at lists.secondlife.com >> Second Life Developer Mailing List
Subject: Re: [sldev] Unit Test Harness: Patch-2


Gaurav Sharma wrote:
>
> b. LLDataPacker (7 out of 14 cases fail)
>   pack/unpackFixed and pack/unpackF32 seem to not preserve the float
> value -
> even the approximate_equal check fails.
>

Could you expand on this a bit more? I just recently implemented the
fixed packer/unpacker in libsecondlife and we've been passing all of our
BitPack unit tests for a while, so I need to know how to break
libsecondlife to make it act like the official client.

John Hurliman
_______________________________________________
Click here to unsubscribe or manage your list subscription:
/index.html





More information about the SLDev mailing list