mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-27 07:29:52 +08:00
add regression unit test for previous changeset
This commit is contained in:
parent
5e635f9ca1
commit
d3e5db9a80
@ -60,6 +60,16 @@ void alignedvector3()
|
||||
r2.normalize();
|
||||
VERIFY_IS_APPROX(f2,r2);
|
||||
|
||||
{
|
||||
FastType f6 = RefType::Zero();
|
||||
FastType f7 = FastType::Zero();
|
||||
VERIFY_IS_APPROX(f6,f7);
|
||||
f6 = r4+r1;
|
||||
VERIFY_IS_APPROX(f6,r4+r1);
|
||||
f6 -= Scalar(2)*r4;
|
||||
VERIFY_IS_APPROX(f6,r1-r4);
|
||||
}
|
||||
|
||||
std::stringstream ss1, ss2;
|
||||
ss1 << f1;
|
||||
ss2 << r1;
|
||||
|
Loading…
Reference in New Issue
Block a user