implement the first _real_ unit-tests, testing the results for correctness instead

of just checking compilation.

Fix the many issues discovered by these unit-tests, by the way fixing a performance bug.
This commit is contained in:
Benoit Jacob
2007-10-13 16:56:24 +00:00
parent 31061557a5
commit e445f5085a
16 changed files with 132 additions and 281 deletions

View File

@@ -80,9 +80,9 @@ template<typename MatrixType> class Row
template<typename Scalar, typename Derived>
Row<Derived>
Object<Scalar, Derived>::row(int i)
Object<Scalar, Derived>::row(int i) const
{
return Row<Derived>(static_cast<Derived*>(this)->ref(), i);
return Row<Derived>(static_cast<Derived*>(const_cast<Object*>(this))->ref(), i);
}
#endif // EI_ROW_H