diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/double_size.cpp | 11 | ||||
-rw-r--r-- | test/matrix_test.cpp | 13 | ||||
-rw-r--r-- | test/vector2d_test.cpp | 15 |
3 files changed, 13 insertions, 26 deletions
diff --git a/test/double_size.cpp b/test/double_size.cpp deleted file mode 100644 index 25c7cef7..00000000 --- a/test/double_size.cpp +++ /dev/null @@ -1,11 +0,0 @@ -#include <iostream> - -int main() -{ - std::cout<<"Size of double: "<<sizeof(double)<<'\n'; - std::cout<<"Size of long double: "<<sizeof(long double)<<'\n'; - - if(sizeof(long double) > 8) - return 0; - return 1; -} diff --git a/test/matrix_test.cpp b/test/matrix_test.cpp new file mode 100644 index 00000000..8f09ad38 --- /dev/null +++ b/test/matrix_test.cpp @@ -0,0 +1,13 @@ +#include "Math/matrix.hpp" + +#include <iostream> + +int main() +{ + yage::Matrix<double, 10, 10> matrix; + + int x=matrix.get(5, 2); + + std::cout<<"at: "<<x<<'\n'; + return 0; +} diff --git a/test/vector2d_test.cpp b/test/vector2d_test.cpp deleted file mode 100644 index 2eb00de4..00000000 --- a/test/vector2d_test.cpp +++ /dev/null @@ -1,15 +0,0 @@ -#include "vector2d.hpp" - -#include <iostream> - -int main() -{ - yage::Vector2D v; - yage::Vector2D v2(1, 5); - - v=v2+2; - - std::cout<<v<<'\n'; - - return 0; -} |