Commit a8e21c5b authored by peastman's avatar peastman
Browse files

Merge pull request #1062 from jchodera/fix-tests-2

Fix issue with test type casting.
parents 9b345f2d 297da7b2
...@@ -835,7 +835,7 @@ void testChangingGlobal() { ...@@ -835,7 +835,7 @@ void testChangingGlobal() {
for (int i = 0; i < 10; i++) { for (int i = 0; i < 10; i++) {
integrator.step(1); integrator.step(1);
ASSERT_EQUAL_TOL(i+1, integrator.getGlobalVariable(0), 1e-5); ASSERT_EQUAL_TOL(i+1.0, integrator.getGlobalVariable(0), 1e-5);
vector<Vec3> values; vector<Vec3> values;
integrator.getPerDofVariable(1, values); integrator.getPerDofVariable(1, values);
ASSERT_EQUAL_VEC(Vec3(i+1.5, i+1.5, i+1.5), values[0], 1e-5); ASSERT_EQUAL_VEC(Vec3(i+1.5, i+1.5, i+1.5), values[0], 1e-5);
......
...@@ -835,7 +835,7 @@ void testChangingGlobal() { ...@@ -835,7 +835,7 @@ void testChangingGlobal() {
for (int i = 0; i < 10; i++) { for (int i = 0; i < 10; i++) {
integrator.step(1); integrator.step(1);
ASSERT_EQUAL_TOL(i+1, integrator.getGlobalVariable(0), 1e-5); ASSERT_EQUAL_TOL(i+1.0, integrator.getGlobalVariable(0), 1e-5);
vector<Vec3> values; vector<Vec3> values;
integrator.getPerDofVariable(1, values); integrator.getPerDofVariable(1, values);
ASSERT_EQUAL_VEC(Vec3(i+1.5, i+1.5, i+1.5), values[0], 1e-5); ASSERT_EQUAL_VEC(Vec3(i+1.5, i+1.5, i+1.5), values[0], 1e-5);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment