Menu
Logged-In As
ACCOUNTNot Logged In
Create unit tests for plane.c dist functionsBRL-CAD
Status: ClosedTime to complete:
72 hrs
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_
Uploaded Work
File name/URL | File size | Date submitted | |
---|---|---|---|
plane_dist.diff | 8.6 KB | December 07 2013 01:02 UTC |
I would like to work on this task.
This task has been assigned to Andromeda Galaxy. You have 72 hours to complete this task, good luck!
The work on this task is ready to be reviewed.
Congratulations, this task has been completed successfully.
Nearly perfect patch. The comment header was wrong, but the content looked good. A little surprised you didn't find any test cases that fail, though.
Failures are generally more useful, so we can detect and fix the bugs. ;)
Regardless, nicely done with the patch. What's next? :)