VOXELFORMAT: added test and test file

test file is from https://silverspaceship.com/aosmap/
master
Martin Gerhardy 2020-06-30 19:48:27 +02:00
parent 5c53b0d6e4
commit e565797d69
3 changed files with 21 additions and 0 deletions

BIN
data/tests/aceofspades.vxl Normal file

Binary file not shown.

View File

@ -20,6 +20,7 @@ engine_add_module(TARGET ${LIB} SRCS ${SRCS} DEPENDENCIES voxel voxelutil)
set(TEST_SRCS
tests/AbstractVoxFormatTest.h tests/AbstractVoxFormatTest.cpp
tests/AoSVXLFormatTest.cpp
tests/BinVoxFormatTest.cpp
tests/VoxFormatTest.cpp
tests/QBTFormatTest.cpp
@ -33,6 +34,7 @@ set(TEST_SRCS
set(TEST_FILES
tests/qubicle.qb
tests/qubicle.qbt
tests/aceofspades.vxl
tests/cc.vxl
tests/test.binvox
tests/test.kvx

View File

@ -0,0 +1,19 @@
/**
* @file
*/
#include "AbstractVoxFormatTest.h"
#include "voxelformat/AoSVXLFormat.h"
namespace voxel {
class AoSVXLFormatTest: public AbstractVoxFormatTest {
};
TEST_F(AoSVXLFormatTest, testLoad) {
AoSVXLFormat f;
std::unique_ptr<RawVolume> volume(load("aceofspades.vxl", f));
ASSERT_NE(nullptr, volume) << "Could not load ace of spades file";
}
}