|
@@ -1,3 +1,5 @@
|
|
|
+#define IMPORT_CORE
|
|
|
+#include <core/Logger.h>
|
|
|
#include <stdio.h>
|
|
|
|
|
|
#include "../Tests.h"
|
|
@@ -42,7 +44,9 @@ void coreTestImageReader(const char* path) {
|
|
|
testReadPNG8(path, "gray16", 32, 64, 1);
|
|
|
testReadPNG8(path, "graya8", 32, 64, 2);
|
|
|
testReadPNG8(path, "graya16", 32, 64, 2);
|
|
|
+ logLevel = LOG_NONE;
|
|
|
testReadPNG8(path, "nope", 0, 0, 0);
|
|
|
+ logLevel = LOG_DEBUG;
|
|
|
testReadPNG16(path, "rgb8", 32, 64, 3);
|
|
|
testReadPNG16(path, "rgb16", 32, 64, 3);
|
|
|
testReadPNG16(path, "rgba8", 32, 64, 4);
|
|
@@ -51,5 +55,7 @@ void coreTestImageReader(const char* path) {
|
|
|
testReadPNG16(path, "gray16", 32, 64, 1);
|
|
|
testReadPNG16(path, "graya8", 32, 64, 2);
|
|
|
testReadPNG16(path, "graya16", 32, 64, 2);
|
|
|
+ logLevel = LOG_NONE;
|
|
|
testReadPNG16(path, "nope", 0, 0, 0);
|
|
|
+ logLevel = LOG_DEBUG;
|
|
|
}
|