reformat unittests.

This commit is contained in:
Kim Kulling
2020-03-22 12:13:09 +01:00
parent edc73552cd
commit 68a9fa2df3
77 changed files with 2555 additions and 1632 deletions

View File

@@ -5,8 +5,6 @@ Open Asset Import Library (assimp)
Copyright (c) 2006-2020, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,
@@ -40,9 +38,9 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
---------------------------------------------------------------------------
*/
#include "UnitTestPCH.h"
#include "PostProcessing/ScaleProcess.h"
#include "TestModelFactory.h"
#include "UnitTestPCH.h"
namespace Assimp {
namespace UnitTest {
@@ -51,22 +49,22 @@ class utScaleProcess : public ::testing::Test {
// empty
};
TEST_F( utScaleProcess, createTest ) {
TEST_F(utScaleProcess, createTest) {
bool ok = true;
try {
ScaleProcess process;
} catch ( ... ) {
} catch (...) {
ok = false;
}
EXPECT_TRUE( ok );
EXPECT_TRUE(ok);
}
TEST_F( utScaleProcess, accessScaleTest ) {
TEST_F(utScaleProcess, accessScaleTest) {
ScaleProcess process;
EXPECT_FLOAT_EQ( AI_CONFIG_GLOBAL_SCALE_FACTOR_DEFAULT, process.getScale() );
EXPECT_FLOAT_EQ(AI_CONFIG_GLOBAL_SCALE_FACTOR_DEFAULT, process.getScale());
process.setScale( 2.0f );
EXPECT_FLOAT_EQ( 2.0f, process.getScale() );
process.setScale(2.0f);
EXPECT_FLOAT_EQ(2.0f, process.getScale());
}
} // Namespace UnitTest