Create a utility library (LIBBU) API unit test ... for vls.cBRL-CAD
Status: ClosedTime to complete: 48 hrs Mentors: SeanTags: unit test, API, C, Tcl, Python, Ruby

There are more than 300 library functions in our core LIBBU library. As a core library used by nearly every one of BRL-CAD's tools, testing those functions for correct behavior is important.

This task involves implementing a new unit test for any of LIBBU's source files that do not already have a unit test defined. The test should run all of the public functions and be hooked into our build system (if written in C). We have lots of existing unit tests to follow as an example.

You can implement this task in any language you like, but you'll have to bind all of the functions you test.

References:

  • include/bu.h
  • src/libbu/vls.c
  • src/libbu/tests/*.c

Code:

  • src/libbu/tests/bu_vls.c
  • src/libbu/tests/CMakeLists.txt
Uploaded Work
File name/URLFile sizeDate submitted
vls.patch16.4 KBDecember 15 2012 14:54 UTC
Comments
Silvrouson December 9 2012 19:19 UTCTask Claimed

I would like to work on this task.

Sean on December 9 2012 19:20 UTCTask Assigned

This task has been assigned to Silvrous. You have 48 hours to complete this task, good luck!

Sean on December 11 2012 18:54 UTCDeadline extended

The deadline of the task has been extended with 2 days and 0 hours.

Sean on December 13 2012 18:50 UTCDeadline extended

The deadline of the task has been extended with 1 days and 0 hours.

Andrei Popescu on December 14 2012 18:17 UTCDeadline extended

The deadline of the task has been extended with 1 days and 0 hours.

Silvrouson December 15 2012 14:54 UTCReady for review

The work on this task is ready to be reviewed.

Melange on December 15 2012 20:25 UTCNo more Work can be submitted

Melange has detected that the deadline has passed and no more work can be submitted. The submitted work should be reviewed.

Sean on December 17 2012 06:14 UTCTask Closed

Congratulations, this task has been completed successfully.

Sean on December 17 2012 06:15 UTCuntested, but looks like a lot of work

I haven't tested the patch but it certainly looks like you've put a lot of effort into it.  This was one of the more involved unit tests, so thank you for your efforts rounding it out!