瀏覽代碼

Add formatDetection unit-test for 3DS importer

Alexandre Avenel 6 年之前
父節點
當前提交
b226982a3c
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      test/unit/ut3DSImportExport.cpp

+ 8 - 0
test/unit/ut3DSImportExport.cpp

@@ -66,3 +66,11 @@ public:
 TEST_F( ut3DSImportExport, import3DSFromFileTest ) {
     EXPECT_TRUE( importerTest() );
 }
+
+TEST_F( ut3DSImportExport, import3DSformatdetection) {
+    ::Assimp::Importer importer;
+    const aiScene *scene = importer.ReadFile(ASSIMP_TEST_MODELS_DIR "/3DS/testFormatDetection", aiProcess_ValidateDataStructure);
+
+    EXPECT_NE(nullptr, scene);
+}
+