-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add unit tests for mathematical classes. #74
Conversation
Travis-CI status notifier bot [PASSED]All tests passed
|
Travis-CI status notifier bot [PASSED]All tests passed
|
Travis-CI status notifier bot [PASSED]All tests passed
|
Travis-CI status notifier bot [PASSED]All tests passed
|
include/nd.h
Outdated
sq2_ = sigma * sigma * 2.0; | ||
} | ||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert from this pr
test/src/test_nd.cpp
Outdated
ASSERT_LT(fabs(nl(3.0 * sigma) - likelihood0 * 0.011108997), 1e-6); | ||
ASSERT_LT(fabs(nl(-3.0 * sigma) - likelihood0 * 0.011108997), 1e-6); | ||
|
||
// Check integral |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
integrated value
test/src/test_quat.cpp
Outdated
|
||
TEST(QuatTest, testConstractors) | ||
{ | ||
// Test quaternion elements style constructor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and copy constructor
test/src/test_quat.cpp
Outdated
|
||
const Quat q(fw, up); | ||
|
||
const Vec3 f = q * Vec3(1.0, 0.0, 0.0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Rotate forward and up vectors and compare.
test/src/test_vec3.cpp
Outdated
|
||
TEST(Vec3Test, testConstructors) | ||
{ | ||
const Vec3 a(1.0, 2.0, 3.0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Test vector elements constructor and copy constructor
Travis-CI status notifier bot [PASSED]All tests passed
|
No description provided.