sgorsten / linalg

linalg.h is a single header, public domain, short vector math library for C++
The Unlicense
854 stars 68 forks source link

Unit tests #3

Closed sgorsten closed 5 years ago

sgorsten commented 8 years ago

linalg.h is textually short, but very general. Most operations have been generalized over:

Additionally, names have been deliberately chosen to be terse, allowing for the concise expression of complex mathematical formula. This means plenty of potential name collisions with the std:: namespace and the potential for unintended argument-dependent lookup.

We're going to need a good set of unit tests to make sure that all templates are being instantiated across the range of reasonable types, sizes, and argument combinations. We don't need to get super exhaustive, given that most functions are one-liners and many functions share common structure, but we should make sure we're equipped to catch regressions as the library evolves.

sgorsten commented 5 years ago

Closing issue since it has no concrete end-point. The v3 branch has a substantially larger test suite than v2.1, but we can always use more tests.