Browse Source

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

Kim Kulling 6 years ago
parent
commit
ca0549558b
2 changed files with 11 additions and 0 deletions
  1. 1 0
      test/models/FBX/transparentTest.fbx
  2. 10 0
      test/unit/utFBXImporterExporter.cpp

File diff suppressed because it is too large
+ 1 - 0
test/models/FBX/transparentTest.fbx


+ 10 - 0
test/unit/utFBXImporterExporter.cpp

@@ -276,3 +276,13 @@ TEST_F(utFBXImporterExporter, importEmbeddedFragmentedAsciiTest) {
     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";
 }
+
+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);
+}

Some files were not shown because too many files changed in this diff