Commit 297da7b2 authored by John Chodera (MSKCC)'s avatar John Chodera (MSKCC)
Browse files

Fix issue with test type casting.

parent 9b345f2d
......@@ -835,7 +835,7 @@ void testChangingGlobal() {
for (int i = 0; i < 10; i++) {
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;
integrator.getPerDofVariable(1, values);
ASSERT_EQUAL_VEC(Vec3(i+1.5, i+1.5, i+1.5), values[0], 1e-5);
......
......@@ -835,7 +835,7 @@ void testChangingGlobal() {
for (int i = 0; i < 10; i++) {
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;
integrator.getPerDofVariable(1, values);
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