Update Collada ZAE tests to include encoded URIs
parent
198bc428fa
commit
f4bd11279f
Binary file not shown.
|
@ -76,6 +76,7 @@ TEST_F(utColladaImportExport, importBlenFromFileTest) {
|
|||
class utColladaZaeImportExport : public AbstractImportExportBase {
|
||||
public:
|
||||
virtual bool importerTest() {
|
||||
{
|
||||
Assimp::Importer importer;
|
||||
const aiScene *scene = importer.ReadFile(ASSIMP_TEST_MODELS_DIR "/Collada/duck.zae", aiProcess_ValidateDataStructure);
|
||||
if (scene == nullptr)
|
||||
|
@ -88,6 +89,22 @@ public:
|
|||
EXPECT_EQ(scene->mNumTextures, 1);
|
||||
EXPECT_EQ(scene->mNumLights, 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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue