diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2009-09-02 16:56:48 -0400 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2009-09-02 16:56:48 -0400 |
commit | ec20d583179bb2f01686c1c6fc0079ddee8ae4e2 (patch) | |
tree | 6cb1e80049601dd584485e4a56ba25da7e681044 /test/basicstuff.cpp | |
parent | cc375e2f79561da0c3e0e8c3184bd51dee334641 (diff) |
* add serious unit test for swap
* fix my stupidity in Matrix::swap()
Diffstat (limited to 'test/basicstuff.cpp')
-rw-r--r-- | test/basicstuff.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/test/basicstuff.cpp b/test/basicstuff.cpp index 52aff93ee..29df99f9e 100644 --- a/test/basicstuff.cpp +++ b/test/basicstuff.cpp @@ -99,15 +99,6 @@ template<typename MatrixType> void basicStuff(const MatrixType& m) MatrixType m4; VERIFY_IS_APPROX(m4 = m1,m1); - // test swap - m3 = m1; - m1.swap(m2); - VERIFY_IS_APPROX(m3, m2); - if(rows*cols>=3) - { - VERIFY_IS_NOT_APPROX(m3, m1); - } - m3.real() = m1.real(); VERIFY_IS_APPROX(static_cast<const MatrixType&>(m3).real(), static_cast<const MatrixType&>(m1).real()); VERIFY_IS_APPROX(static_cast<const MatrixType&>(m3).real(), m1.real()); |