aboutsummaryrefslogtreecommitdiffstats
path: root/tests/particlebody/test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/particlebody/test.cpp')
-rw-r--r--tests/particlebody/test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/particlebody/test.cpp b/tests/particlebody/test.cpp
index 09277826..65c26d5d 100644
--- a/tests/particlebody/test.cpp
+++ b/tests/particlebody/test.cpp
@@ -1,5 +1,5 @@
/** ---------------------------------------------------------------------------
- * @file: particlebodytest.cpp
+ * @file: test.cpp
*
* Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com>
* MIT License, see LICENSE file for more details.
@@ -26,7 +26,7 @@ double gravityAcceleration(int iterations)
TEST(ParticleBody, Gravity)
{
- int randomItr = rand() % 10;
+ int randomItr = rand() % 10;
double idealPosition = 0.5 * -9.81 * std::pow(randomItr, 2);
ASSERT_GE(idealPosition * 0.95, gravityAcceleration(randomItr));