diff options
| author | Jasper van de Gronde <jasper.vandegronde@gmail.com> | 2008-03-28 17:51:48 +0000 |
|---|---|---|
| committer | jaspervdg <jaspervdg@users.sourceforge.net> | 2008-03-28 17:51:48 +0000 |
| commit | 4efb7fc5198625f8decb6c5f3ee842e68d56f6d8 (patch) | |
| tree | cebe6b1b1b3297cdcf6e20b059ce14e9ca90b316 /src | |
| parent | Fixed initialization order (diff) | |
| download | inkscape-4efb7fc5198625f8decb6c5f3ee842e68d56f6d8.tar.gz inkscape-4efb7fc5198625f8decb6c5f3ee842e68d56f6d8.zip | |
nr_matrix_inverse is no more, removed test from nr-matrix-test
(bzr r5218)
Diffstat (limited to 'src')
| -rw-r--r-- | src/libnr/nr-matrix-test.cpp | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/src/libnr/nr-matrix-test.cpp b/src/libnr/nr-matrix-test.cpp index cddfa7af7..c457f9666 100644 --- a/src/libnr/nr-matrix-test.cpp +++ b/src/libnr/nr-matrix-test.cpp @@ -97,35 +97,7 @@ int main(int argc, char *argv[]) NR::scale const s2(-4.0, 2.0); NR::scale const sp5(-.25, .5); UTEST_ASSERT( Matrix(s2).inverse() == Matrix(sp5) ); - } - - UTEST_TEST("nr_matrix_invert") { -/* - NR::Matrix const nr_m_id(m_id); - Matrix const m_s2(NR::scale(-4.0, 2.0)); - NR::Matrix const nr_s2(m_s2); - Matrix const m_sp5(NR::scale(-.25, .5)); - NR::Matrix const nr_sp5(m_sp5); - Matrix const m_t23(t23); - NR::Matrix const nr_t23(m_t23); - NR::Matrix inv; - nr_matrix_invert(&inv, &nr_m_id); - UTEST_ASSERT( Matrix(inv) == m_id ); - nr_matrix_invert(&inv, &nr_t23); - UTEST_ASSERT( Matrix(inv) == Matrix(NR::translate(-2.0, -3.0)) ); - nr_matrix_invert(&inv, &nr_s2); - UTEST_ASSERT( Matrix(inv) == Matrix(nr_sp5) ); - nr_matrix_invert(&inv, &nr_sp5); - UTEST_ASSERT( Matrix(inv) == Matrix(nr_s2) ); - - // Test that nr_matrix_invert handles src == dest. - inv = nr_s2; - nr_matrix_invert(&inv, &inv); - UTEST_ASSERT( Matrix(inv) == Matrix(nr_sp5) ); - inv = nr_t23; - nr_matrix_invert(&inv, &inv); - UTEST_ASSERT( Matrix(inv) == Matrix(NR::translate(-2.0, -3.0)) ); -*/ + UTEST_ASSERT( Matrix(sp5).inverse() == Matrix(s2) ); } UTEST_TEST("elliptic quadratic form") { |
