GSoC/GCI Archive
Google Code-in 2013 BRL-CAD

Create unit tests for plane.c "dist" functions

completed by: Peter Amidon

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.

References:

  • include/bn.h
  • include/plot3.h
  • include/vmath.h
  • src/libbn/qmath.c
  • src/libbu/tests/*.c (note libbu, not libbn for examples)
  • src/libbn/tests/*.c

Code:

  • src/libbn/tests/qmath.c
  • src/libbn/tests/CMakeLists.txt

This task involves implementing a new unit test for any of LIBBN's plane.c public distance functions:

grep -E '^bn' plane.c  | sort | cut -f1 -d\( | sort | grep _dist_