Update Collada ZAE tests to include encoded URIs
parent
198bc428fa
commit
f4bd11279f
Binary file not shown.
|
@ -53,7 +53,7 @@ class utColladaImportExport : public AbstractImportExportBase {
|
||||||
public:
|
public:
|
||||||
virtual bool importerTest() {
|
virtual bool importerTest() {
|
||||||
Assimp::Importer importer;
|
Assimp::Importer importer;
|
||||||
const aiScene *scene = importer.ReadFile( ASSIMP_TEST_MODELS_DIR "/Collada/duck.dae", aiProcess_ValidateDataStructure );
|
const aiScene *scene = importer.ReadFile(ASSIMP_TEST_MODELS_DIR "/Collada/duck.dae", aiProcess_ValidateDataStructure);
|
||||||
if (scene == nullptr)
|
if (scene == nullptr)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
@ -76,18 +76,35 @@ TEST_F(utColladaImportExport, importBlenFromFileTest) {
|
||||||
class utColladaZaeImportExport : public AbstractImportExportBase {
|
class utColladaZaeImportExport : public AbstractImportExportBase {
|
||||||
public:
|
public:
|
||||||
virtual bool importerTest() {
|
virtual bool importerTest() {
|
||||||
Assimp::Importer importer;
|
{
|
||||||
const aiScene *scene = importer.ReadFile(ASSIMP_TEST_MODELS_DIR "/Collada/duck.zae", aiProcess_ValidateDataStructure);
|
Assimp::Importer importer;
|
||||||
if (scene == nullptr)
|
const aiScene *scene = importer.ReadFile(ASSIMP_TEST_MODELS_DIR "/Collada/duck.zae", aiProcess_ValidateDataStructure);
|
||||||
return false;
|
if (scene == nullptr)
|
||||||
|
return false;
|
||||||
|
|
||||||
// Expected number of items
|
// Expected number of items
|
||||||
EXPECT_EQ(scene->mNumMeshes, 1);
|
EXPECT_EQ(scene->mNumMeshes, 1);
|
||||||
EXPECT_EQ(scene->mNumMaterials, 1);
|
EXPECT_EQ(scene->mNumMaterials, 1);
|
||||||
EXPECT_EQ(scene->mNumAnimations, 0);
|
EXPECT_EQ(scene->mNumAnimations, 0);
|
||||||
EXPECT_EQ(scene->mNumTextures, 1);
|
EXPECT_EQ(scene->mNumTextures, 1);
|
||||||
EXPECT_EQ(scene->mNumLights, 1);
|
EXPECT_EQ(scene->mNumLights, 1);
|
||||||
EXPECT_EQ(scene->mNumCameras, 1);
|
EXPECT_EQ(scene->mNumCameras, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
Assimp::Importer importer;
|
||||||
|
const aiScene *scene = importer.ReadFile(ASSIMP_TEST_MODELS_DIR "/Collada/duck_nomanifest.zae", aiProcess_ValidateDataStructure);
|
||||||
|
if (scene == nullptr)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
// Expected number of items
|
||||||
|
EXPECT_EQ(scene->mNumMeshes, 1);
|
||||||
|
EXPECT_EQ(scene->mNumMaterials, 1);
|
||||||
|
EXPECT_EQ(scene->mNumAnimations, 0);
|
||||||
|
EXPECT_EQ(scene->mNumTextures, 1);
|
||||||
|
EXPECT_EQ(scene->mNumLights, 1);
|
||||||
|
EXPECT_EQ(scene->mNumCameras, 1);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue