Create unit tests for our basic utility library (LIBBU) #3
completed by: Johannes Schulte
There are dozens of files 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.
- src/libbu/tests/*.c (lots of examples to follow)
This task involves implementing a new unit test for any of LIBBU's source files that do not already have a unit test defined (or any that do not test all functions). The test should run at least 10 public functions if there are multiple functions defined within one of our source files.
Some files might have LOTS of functions. You don't have to test them all! Just test at least 10 of them and if any prove to be challenging, let us know before you invest more than an hour. Your unit test(s) must be hooked into our build system and "should" pass. If you find a genuine bug, let us know (we can create follow-on tasks for any you investigate and fix). We have lots of existing unit tests to follow as an example.
Submit your new unit test and build system changes as a patch file. Let us know about any problems or bugs encountered.