aboutsummaryrefslogtreecommitdiffstats
path: root/test/matrix_test.cpp
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-06-06 14:42:46 +0100
committerYann Herklotz <ymherklotz@gmail.com>2017-06-06 14:42:46 +0100
commitd259d97d283bdf1d3b3d15916073c283ca2283e7 (patch)
tree1b618665a989237bb19ebc242342cf63512ddc3a /test/matrix_test.cpp
parentd5b26e1a9428f7dd951dbf8ea08a5035620fa2e5 (diff)
downloadYAGE-d259d97d283bdf1d3b3d15916073c283ca2283e7.tar.gz
YAGE-d259d97d283bdf1d3b3d15916073c283ca2283e7.zip
Need to fix Matrix to be assignable
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;
}