aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
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>