diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/double_size.cpp | 11 | ||||
-rw-r--r-- | test/rigid_body_test.cpp | 4 | ||||
-rw-r--r-- | test/vector2d_test.cpp | 2 |
3 files changed, 15 insertions, 2 deletions
diff --git a/test/double_size.cpp b/test/double_size.cpp new file mode 100644 index 00000000..25c7cef7 --- /dev/null +++ b/test/double_size.cpp @@ -0,0 +1,11 @@ +#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/rigid_body_test.cpp b/test/rigid_body_test.cpp index 39488599..b898a1b4 100644 --- a/test/rigid_body_test.cpp +++ b/test/rigid_body_test.cpp @@ -1,10 +1,10 @@ -#include "Physics/rigidbody.hpp" +#include "Physics/particlebody.hpp" #include <iostream> int main(int, char**) { - yage::RigidBody body(glm::vec2(0.f, 0.f), 1, glm::vec2(0.f, 9.81f)); + yage::ParticleBody body; for(int i=0; i<60*3; ++i) { body.update(); diff --git a/test/vector2d_test.cpp b/test/vector2d_test.cpp new file mode 100644 index 00000000..2c37bba7 --- /dev/null +++ b/test/vector2d_test.cpp @@ -0,0 +1,2 @@ +#include <YAGE/Math/vector2d.hpp> + |