diff options
Diffstat (limited to 'test/matrixtest.cpp')
-rw-r--r-- | test/matrixtest.cpp | 34 |
1 files changed, 9 insertions, 25 deletions
diff --git a/test/matrixtest.cpp b/test/matrixtest.cpp index 8f78091f..50a0b29c 100644 --- a/test/matrixtest.cpp +++ b/test/matrixtest.cpp @@ -58,6 +58,8 @@ bool matrixAddition() yage::Matrix<4, 4, int> m3=m1+m2; + std::cout<<m3<<'\n'; + return m3[1][1]==876; } @@ -85,34 +87,16 @@ int main() { TestBench tb; - bool all_passed=false; + bool all_passed=true; - try - { - test(tb, "Matrix Assign", matrixAssign()); - } - catch(std::exception e) - { - std::cout<<e.what()<<'\n'; - } + try{ test(tb, "Matrix Assign", matrixAssign()); } + catch(std::exception e) { std::cout<<e.what()<<'\n'; } - try - { - test(tb, "Matrix Addition", matrixAddition()); - } - catch(std::exception e) - { - std::cout<<e.what()<<'\n'; - } + try{ test(tb, "Matrix Addition", matrixAddition()); } + catch(std::exception e) { std::cout<<e.what()<<'\n'; } - try - { - test(tb, "Vector Dot Product", vectorDotProduct()); - } - catch(std::string e) - { - std::cout<<e<<'\n'; - } + try{ test(tb, "Vector Dot Product", vectorDotProduct()); } + catch(std::string e) { std::cout<<e<<'\n'; } tb.printResults(); return all_passed; |