From b36936a4abc34bca3cbfbaf37b38095005e3a384 Mon Sep 17 00:00:00 2001 From: erwincoumans Date: Tue, 10 Feb 2015 18:12:55 -0800 Subject: [PATCH] Update Test_v3interp.cpp add test case for https://github.com/bulletphysics/bullet3/pull/313 --- test/Bullet2/Source/Tests/Test_v3interp.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/Bullet2/Source/Tests/Test_v3interp.cpp b/test/Bullet2/Source/Tests/Test_v3interp.cpp index b03377597..33d47db02 100644 --- a/test/Bullet2/Source/Tests/Test_v3interp.cpp +++ b/test/Bullet2/Source/Tests/Test_v3interp.cpp @@ -62,7 +62,9 @@ int Test_v3interp(void) v2.setW(w); correct_res = v3interp_ref(correct_res, v1, v2, rt); - test_res.setInterpolate3(v1, v2, rt); + //test self-referencing vector, see issue https://github.com/bulletphysics/bullet3/pull/313 + test_res = v1; + test_res.setInterpolate3(test_res, v2, rt); if( fabs(correct_res.m_floats[0] - test_res.m_floats[0]) + fabs(correct_res.m_floats[1] - test_res.m_floats[1]) +