This commit is contained in:
Seiji Emery 2015-07-02 17:24:03 -07:00
parent a48adf5ce5
commit 7ba03418fc
7 changed files with 9 additions and 741 deletions

View file

@ -134,7 +134,7 @@ if (APPLE)
endif ()
# Hide automoc folders (for IDEs)
set(AUTOGEN_TARGETS_FOLDER "hidden/generated") # Apparently this doesn't work... -.-
set(AUTOGEN_TARGETS_FOLDER "hidden/generated")
# Find includes in corresponding build directories
set(CMAKE_INCLUDE_CURRENT_DIR ON)

View file

@ -11,7 +11,7 @@
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
test = function(name, func) {
var test = function(name, func) {
print("Running test: " + name);
var unitTest = new UnitTest(name, func);

File diff suppressed because it is too large Load diff

View file

@ -55,23 +55,6 @@ void MeshMassPropertiesTests::testParallelAxisTheorem() {
btMatrix3x3 twoSmallBoxesInertia = smallBoxShiftedRight + smallBoxShiftedLeft;
// verify bigBox same as twoSmallBoxes
// btScalar error;
// for (int i = 0; i < 3; ++i) {
// for (int j = 0; j < 3; ++j) {
// QCOMPARE_WITH_ABS_ERROR(bitBoxInertia[i][j], twoSmallBoxesInertia[i][j], acceptableAbsoluteError);
//// error = bitBoxInertia[i][j] - twoSmallBoxesInertia[i][j];
//// if (fabsf(error) > acceptableAbsoluteError) {
//// std::cout << __FILE__ << ":" << __LINE__ << " ERROR : box inertia[" << i << "][" << j << "] off by = "
//// << error << std::endl;
//// }
// }
// }
// Try commenting this out to see what happens when the test fails
// twoSmallBoxesInertia[0][2] += 10;
// This now does the same as the above (using the maxDiff getErrorDifference impl for two btMatrices)
QCOMPARE_WITH_ABS_ERROR(bitBoxInertia, twoSmallBoxesInertia, acceptableAbsoluteError);
}