Hi,
Arjun Govindjee has left the following comment at Create a utility library
(LIBBU) API unit test ... for vlb.c
http://www.google-melange.com/gci/task/view/google/gci2012/8036205:
bu_vlb_capacity
The bu_vlb_capacity() function is an excellent idea, and I would have done
something similar before, but I didn't think that as a unit test developer
I should be modifying the code that I was writing a test for. However, it
would appear that to prevent my unit test from containing bad code, I
should just go ahead and do it.
Also with regard to the double memset, I first wrote all 1s to the bytes
and then I set it back to all 0s, because bu_vlb_init, bu_vlb_initialize
both use calloc, which zeroes the memory. I figured that just in case the
calloc ever actually becomes essential to the operations of vlb (in the
future), I should set the buffer back to 0s.
If you think that is a little overcautious/ridiculous (since vlb probably
never will require zeroed memory to operate properly), I can remove it.
Greetings,
The Google Open Source Programs Team
---
You are receiving this message because you are subscribed to Create a
utility library (LIBBU) API unit test ... for vlb.c.
To stop receiving these messages, go to:
http://www.google-melange.com/gci/task/view/google/gci2012/8036205.
------------------------------------------------------------------------------
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
_______________________________________________
BRL-CAD Tracker mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-tracker