From 89c0eacf5c68ab8246b4b11a79c1e9da6da87aef Mon Sep 17 00:00:00 2001 From: Lukas Cejka <lukas.ostatek@gmail.com> Date: Tue, 26 Mar 2019 14:48:50 +0100 Subject: [PATCH] Commented out non-working implementation of getType test and added test failure if it is ran. --- src/UnitTests/Matrices/SparseMatrixTest.hpp | 32 +++++++++++++-------- 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/src/UnitTests/Matrices/SparseMatrixTest.hpp b/src/UnitTests/Matrices/SparseMatrixTest.hpp index 4271c15a1b..6c80e6566a 100644 --- a/src/UnitTests/Matrices/SparseMatrixTest.hpp +++ b/src/UnitTests/Matrices/SparseMatrixTest.hpp @@ -19,23 +19,31 @@ template< typename MatrixHostFloat, typename MatrixHostInt > void host_test_GetType() { - MatrixHostFloat mtrxHostFloat; - MatrixHostInt mtrxHostInt; - - - EXPECT_EQ( mtrxHostFloat.getType(), TNL::String( "Matrices::CSR< float, Devices::Host >" ) ); - EXPECT_EQ( mtrxHostInt.getType(), TNL::String( "Matrices::CSR< int, Devices::Host >" ) ); + bool testRan = false; + EXPECT_TRUE( testRan ); + std::cout << "\nTEST DID NOT RUN. NOT WORKING.\n\n"; + std::cerr << "This test has not been implemented properly yet.\n" << std::endl; + +// MatrixHostFloat mtrxHostFloat; +// MatrixHostInt mtrxHostInt; +// +// EXPECT_EQ( mtrxHostFloat.getType(), TNL::String( "Matrices::CSR< float, Devices::Host >" ) ); +// EXPECT_EQ( mtrxHostInt.getType(), TNL::String( "Matrices::CSR< int, Devices::Host >" ) ); } template< typename MatrixCudaFloat, typename MatrixCudaInt > void cuda_test_GetType() { - MatrixCudaFloat mtrxCudaFloat; - MatrixCudaInt mtrxCudaInt; - - - EXPECT_EQ( mtrxCudaFloat.getType(), TNL::String( "Matrices::CSR< float, Cuda >" ) ); - EXPECT_EQ( mtrxCudaInt.getType(), TNL::String( "Matrices::CSR< int, Cuda >" ) ); + bool testRan = false; + EXPECT_TRUE( testRan ); + std::cout << "\nTEST DID NOT RUN. NOT WORKING.\n\n"; + std::cerr << "This test has not been implemented properly yet.\n" << std::endl; + +// MatrixCudaFloat mtrxCudaFloat; +// MatrixCudaInt mtrxCudaInt; +// +// EXPECT_EQ( mtrxCudaFloat.getType(), TNL::String( "Matrices::CSR< float, Devices::Cuda >" ) ); +// EXPECT_EQ( mtrxCudaInt.getType(), TNL::String( "Matrices::CSR< int, Devices::Cuda >" ) ); } template< typename Matrix > -- GitLab