Create a numerics library (LIBBN) API unit test ... for poly.c
completed by: Gmercer015
mentors: Sean
There are more than 300 library functions in our core LIBBN 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 LIBBN'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/bn.h
- src/libbn/poly.c
- src/libbu/tests/*.c
- src/libbn/tests/*.c
Code:
- src/libbn/tests/bu_poly.c
- src/libbn/tests/CMakeLists.txt