Menu
Logged-In As
ACCOUNTNot Logged In
Create numerics library (LIBBN) API unit test for axis.cBRL-CAD
Status: ClosedTime to complete:
100 hrs
Mentors: Isaac Kamga, Hardeep Singh Rai
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/URL | File size | Date submitted | |
---|---|---|---|
task-25-add-axis-tests.diff | 7.0 KB | December 11 2014 00:24 UTC | |
bn_tp_3axis_1.3d.pl | 3.2 KB | December 11 2014 00:26 UTC | |
bn_tp_3axis_2.3d.pl | 3.2 KB | December 11 2014 00:26 UTC |
I would like to work on this task.
This task has been assigned to Andromeda Galaxy. You have 100 hours to complete this task, good luck!
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?
The work on this task is ready to be reviewed.
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
Congratulations, this task has been completed successfully.