Menu
Logged-In As
ACCOUNTNot Logged In
Create an utility library (LIBBU) API unit test for badmagic.cBRL-CAD
Status: ClosedTime to complete:
72 hrs
Mentors: Sean
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.
References:
- include/bu.h
- src/libbu/badmagic.c
- src/libbu/tests/*.c
Code:
- src/libbu/tests/badmagic.c
- src/libbu/tests/CMakeLists.txt
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. We have lots of existing unit tests to follow as an example.
Uploaded Work
File name/URL | File size | Date submitted | |
---|---|---|---|
https://sourceforge.net/p/brlcad/code/59237/ | n/a | December 31 2013 00:40 UTC |
I would like to work on this task.
This task has been assigned to agkphysics. You have 72 hours to complete this task, good luck!
The work on this task is ready to be reviewed.
Congratulations, this task has been completed successfully.
This looks good, but the callback function should be static. Excellent discovery of how to set the bomb callback as a means to test a bombing function.