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

Create a COMPREHENSIVE unit test for bn_dist_pt3_pt3()

completed by: Arjun Govindjee

mentors: Sean

There are more than 300 library functions in our LIBBN numerics library. Creating a comprehensive unit test involves exhaustively exploring all possible inputs to the function, testing them for proper behavior, and characterizing the output in a PASS/FAIL fashion.

Unlike the other testing framework tasks, the goal of this task is comprehensiveness. The task must cover all possible inputs including NULL, -inf, +inf, NaN, real numbers, and other values in most if not all possible combinations.  You can write the test in any language you want, but you need to bind through accordingly if not in C.


  • include/bn.h
  • src/libbn/plane.c
  • src/libbn/tests/CMakeLists.txt
  • src/libbn/tests/bn_plane.c <-- you write this if in C