Create numerics library (LIBBN) API unit test for axis.cBRL-CAD
Status: ClosedTime to complete: 100 hrs Mentors: Isaac Kamga, Hardeep Singh RaiTags: C, testing, library, quality, api, unit test, assurance

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/axis.c
  • src/libbu/tests/*.c (note libbu, not libbn for examples)
  • src/libbn/tests/*.c

Code:

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

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. We have lots of existing unit tests to follow as an example.

Uploaded Work
File name/URLFile sizeDate submitted
task-25-add-axis-tests.diff7.0 KBDecember 11 2014 00:24 UTC
bn_tp_3axis_1.3d.pl3.2 KBDecember 11 2014 00:26 UTC
bn_tp_3axis_2.3d.pl3.2 KBDecember 11 2014 00:26 UTC
Comments
Andromeda Galaxyon December 10 2014 19:14 UTCTask Claimed

I would like to work on this task.

Deepak on December 10 2014 19:25 UTCTask Assigned

This task has been assigned to Andromeda Galaxy. You have 100 hours to complete this task, good luck!

Andromeda Galaxyon December 10 2014 20:20 UTCComparing results

I'm not entirely sure what the best way is to compare the results of tp_3axis() with known good results; the simplest would be diffing the resultant binary file, which should work for the majority of cases, but if the logic is changed to draw the graph in a different way (i.e. drawing segments in a different order) it wouldn't work.   Would diffing the binary files be enough for a start?

Andromeda Galaxyon December 11 2014 00:38 UTCReady for review

The work on this task is ready to be reviewed.

Popescu Andrei on December 11 2014 06:29 UTC

Andromeda,


From the point of view of a Google Code-In task, I can definitely that you've put enough work into it and that it's enough. Since I've seen you re interested in achieving applicable results, you might want to talk to other mentors, maybe you can find out more :)


In any case, this is alright :)


Thank you for your effort,


Andrei

Popescu Andrei on December 11 2014 06:29 UTCTask Closed

Congratulations, this task has been completed successfully.