closes https://github.com/assimp/assimp/issues/2653: introduce 2 tests to reproduce fbx-tokenize issue.

pull/2656/head
Kim Kulling 2019-09-14 10:31:35 +02:00
parent 79056da4be
commit ca0549558b
2 changed files with 849 additions and 0 deletions

File diff suppressed because one or more lines are too long

View File

@ -276,3 +276,13 @@ TEST_F(utFBXImporterExporter, importEmbeddedFragmentedAsciiTest) {
ASSERT_TRUE(scene->mTextures[0]->pcData); ASSERT_TRUE(scene->mTextures[0]->pcData);
ASSERT_EQ(968029u, scene->mTextures[0]->mWidth) << "FBX ASCII base64 compression splits data by 512Kb, it should be two parts for this texture"; ASSERT_EQ(968029u, scene->mTextures[0]->mWidth) << "FBX ASCII base64 compression splits data by 512Kb, it should be two parts for this texture";
} }
TEST_F(utFBXImporterExporter, fbxTokenizeTestTest) {
Assimp::Importer importer1;
const aiScene* scene1 = importer1.ReadFile(ASSIMP_TEST_MODELS_DIR "/FBX/transparentTest.fbx", aiProcess_ValidateDataStructure);
EXPECT_NE(nullptr, scene1);
Assimp::Importer importer2;
const aiScene* scene2 = importer2.ReadFile(ASSIMP_TEST_MODELS_DIR "/FBX/transparentTest2.fbx", aiProcess_ValidateDataStructure);
EXPECT_NE(nullptr, scene2);
}