aboutsummaryrefslogtreecommitdiffstats
path: root/test/matrix_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/matrix_test.cpp')
-rw-r--r--test/matrix_test.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/test/matrix_test.cpp b/test/matrix_test.cpp
index ba1f0d4a..e975794f 100644
--- a/test/matrix_test.cpp
+++ b/test/matrix_test.cpp
@@ -4,10 +4,14 @@
int main()
{
- yage::Matrix<4, 4, int> matrix;
+ yage::Matrix<4, 4> matrix;
- int x=matrix[2][2];
-
- std::cout<<"at: "<<x<<'\n';
- return 0;
+ double x=matrix[2][2];
+ matrix[2][2]=4;
+
+ std::cout<<"at: "<<x<<", "<<matrix[2][2]<<'\n';
+
+ if(matrix[2][2]==4 && x==0)
+ return 0;
+ return 1;
}