Create numerics library (LIBBN) unit test for any fileBRL-CAD
Status: ClosedTime to complete: 72 hrs Mentors: SeanTags:

There are dozens of files 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/rand.c
  • src/libbu/tests/*.c (note libbu, not libbn for examples)
  • src/libbn/tests/*.c

Code:

  • src/libbn/tests/rand.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
3pt_collinear.diff4.1 KBNovember 18 2013 23:32 UTC
3pts_collinear_rev2.diff4.2 KBNovember 19 2013 15:56 UTC
3pts_collinear_rev3.diff5.5 KBNovember 19 2013 16:10 UTC
Comments
Peter Amidonon November 18 2013 17:19 UTCTask Claimed

I would like to work on this task.

Andrei on November 18 2013 17:41 UTCTask Assigned

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

Peter Amidonon November 18 2013 23:33 UTCReady for review

The work on this task is ready to be reviewed.

Daniel Rossberg on November 19 2013 02:33 UTCLooks good, but ...

I havn't tested it yet, but at a first sight it looks good.  However, I think the year in the copyright statement needs an adjustment ;)

Daniel Rossberg on November 19 2013 02:33 UTCTask Needs More Work

One of the mentors has sent this task back for more work. Talk to the mentor(s) assigned to this task to satisfy the requirements needed to complete this task, submit your work again and mark the task as complete once you re-submit your work.

Peter Amidonon November 19 2013 15:57 UTCReady for review

The work on this task is ready to be reviewed.

Sean on November 19 2013 16:41 UTCTask Closed

Congratulations, this task has been completed successfully.

Sean on November 19 2013 16:44 UTCnicely done

Good work. As mentioned, we can supply a nearly unlimited set of tasks like this one if you're interested or you can move on to different tasks.


 


We'll be crediting you in our official authorship docementation, so you may want to join our brlcad-news mailing list to see future announcements.  If you provide your full real name, we'll use that (most do, good resume material).