« Previous | Next » 

Revision 49175e6a

ID49175e6ae293fdb564fa0e91fdb104a3a1f248f5
Parent 16bbeccd
Child cbe3941d

Added by Trevor Norris over 11 years ago

buffer: clean up copy() asserts and tests

Argument checks were simplified by setting all undefined/NaN or out of
bounds values equal to their defaults.

Also copy() tests had a flaw that each buffer had the same bit pattern at
the same offset. So even if the copy failed, the bit-by-bit comparison
would have still been true. This was fixed by filling each buffer with a
unique value before copy operations.

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences