diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2011-06-15 10:00:43 -0400 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2011-06-15 10:00:43 -0400 |
commit | a871f3cdb8fbc6e2488d23094186c4767d2859cd (patch) | |
tree | 7528aa31c263af931d03d04c05036e6af1fe7cf8 /test/adjoint.cpp | |
parent | aedccbf52fac1654d81775ee71c496b2fd02d8fc (diff) |
adapt test to the change reverting normalize() to returning void
Diffstat (limited to 'test/adjoint.cpp')
-rw-r--r-- | test/adjoint.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/adjoint.cpp b/test/adjoint.cpp index 98d7aabfb..11b82b45c 100644 --- a/test/adjoint.cpp +++ b/test/adjoint.cpp @@ -74,9 +74,9 @@ template<typename MatrixType> void adjoint(const MatrixType& m) VERIFY_IS_APPROX(v1.squaredNorm(), v1.norm() * v1.norm()); // check normalized() and normalize() VERIFY_IS_APPROX(v1, v1.norm() * v1.normalized()); - // normalize() returns a reference to *this v3 = v1; - VERIFY_IS_APPROX(v1, v1.norm() * v3.normalize()); + v3.normalize(); + VERIFY_IS_APPROX(v1, v1.norm() * v3); VERIFY_IS_APPROX(v3, v1.normalized()); VERIFY_IS_APPROX(v3.norm(), RealScalar(1)); } |