aboutsummaryrefslogtreecommitdiffstats
path: root/test
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
parentd5b26e1a9428f7dd951dbf8ea08a5035620fa2e5 (diff)
downloadYAGE-d259d97d283bdf1d3b3d15916073c283ca2283e7.tar.gz
YAGE-d259d97d283bdf1d3b3d15916073c283ca2283e7.zip
Need to fix Matrix to be assignable
Diffstat (limited to 'test')
-rw-r--r--test/matrix_test.cpp14
-rw-r--r--test/rigid_body_test.cpp2
2 files changed, 10 insertions, 6 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;
}
diff --git a/test/rigid_body_test.cpp b/test/rigid_body_test.cpp
index 57ba1162..c5683697 100644
--- a/test/rigid_body_test.cpp
+++ b/test/rigid_body_test.cpp
@@ -1,4 +1,4 @@
-#include "particlebody.hpp"
+#include "Physics/particlebody.hpp"
#include <iostream>