2525 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
2626 DEALINGS IN THE SOFTWARE.
2727*/
28-
28+
2929#include < Testing/Utils/SCIRunUnitTests.h>
3030#include < fstream>
3131#include < boost/filesystem.hpp>
@@ -56,7 +56,7 @@ using namespace ::testing;
5656
5757#if 0
5858TEST(SolveLinearSystemWithEigenAlgorithmTests, CanSolveBasicSmallDenseSystemWithEigenClasses)
59- {
59+ {
6060 int n = 3;
6161 DenseMatrix m1(n,n);
6262 m1 << 2,-1,0,
@@ -70,12 +70,12 @@ TEST(SolveLinearSystemWithEigenAlgorithmTests, CanSolveBasicSmallDenseSystemWith
7070
7171 auto rhs = m1*v;
7272 std::cout << "rhs = \n" << rhs << std::endl;
73-
73+
7474 VectorXd x(n);
7575 x.setZero();
7676
7777 std::cout << "matrix to solve: \n" << m1 << std::endl;
78-
78+
7979 ConjugateGradient<DenseMatrix::EigenBase> cg;
8080 cg.compute(m1);
8181
@@ -89,7 +89,7 @@ TEST(SolveLinearSystemWithEigenAlgorithmTests, CanSolveBasicSmallDenseSystemWith
8989 int i = 0;
9090 do {
9191 x = cg.solveWithGuess(rhs, x);
92-
92+
9393 std::cout << i << " : " << cg.error() << std::endl;
9494 ++i;
9595 } while (cg.info() != Success && i < 2000);
@@ -240,11 +240,11 @@ TEST(SparseMatrixReadTest, DISABLED_RegexOfScirun4Format)
240240#ifndef WIN32
241241 newline += " \r " ;
242242#endif
243-
243+
244244 EXPECT_EQ (" 2 3 4 {8 0 2 4 }{8 0 2 0 1 }{1 3.5 -1 2 }}" + newline, contents);
245245
246246 auto rawOpt = converter.parseSparseMatrixString (contents);
247- ASSERT_TRUE (rawOpt);
247+ ASSERT_TRUE (static_cast < bool >( rawOpt) );
248248 auto raw = rawOpt.get ();
249249
250250 EXPECT_EQ (" 2" , raw.get <0 >());
@@ -334,11 +334,11 @@ TEST(EigenSparseSolverTest, DISABLED_CanSolveBigSystem)
334334
335335 std::cout << A->nrows () << " x " << A->ncols () << std::endl;
336336
337- auto b = converter.make (rhsFile.string ());
337+ auto b = converter.make (rhsFile.string ());
338338 ASSERT_TRUE (b.get () != nullptr );
339339 std::cout << b->nrows () << " x " << b->ncols () << std::endl;
340340 auto bCol = matrix_convert::to_column (b);
341-
341+
342342 SolveLinearSystemAlgorithm::Outputs x;
343343 {
344344 ScopedTimer t (" using algorithm object" );
0 commit comments