aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/matrixtest.cpp32
1 files changed, 7 insertions, 25 deletions
diff --git a/test/matrixtest.cpp b/test/matrixtest.cpp
index 20f6fb6b..08d025a6 100644
--- a/test/matrixtest.cpp
+++ b/test/matrixtest.cpp
@@ -65,34 +65,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;