Skip to content

Commit

Permalink
VOXELFORMAT: ASE: added test for previously added files
Browse files Browse the repository at this point in the history
  • Loading branch information
mgerhardy committed Jun 16, 2024
1 parent 51821e8 commit 35104a9
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/modules/voxelformat/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ set(TEST_SRCS
tests/AbstractFormatTest.h tests/AbstractFormatTest.cpp
tests/AnimaToonFormatTest.cpp
tests/AoSVXLFormatTest.cpp
tests/AsepriteFormatTest.cpp
tests/BinVoxFormatTest.cpp
tests/ConvertTest.cpp
tests/FormatPaletteTest.cpp
Expand Down Expand Up @@ -264,6 +265,14 @@ set(TEST_FILES
tests/chr_knight.qbcl
tests/chr_knight.gox
tests/chr_knight.fbx

tests/sylvie/02.ase
tests/sylvie/404.ase
tests/sylvie/46.ase
tests/sylvie/line.ase
tests/sylvie/mapmenu.ase
tests/libresprite.ase
tests/libresprite.aseprite
)

gtest_suite_begin(tests-${LIB} TEMPLATE ${ROOT_DIR}/src/modules/core/tests/main.cpp.in)
Expand Down
21 changes: 21 additions & 0 deletions src/modules/voxelformat/tests/AsepriteFormatTest.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/**
* @file
*/

#include "AbstractFormatTest.h"

namespace voxelformat {

class AsepriteFormatTest : public AbstractFormatTest {};

TEST_F(AsepriteFormatTest, testLoad) {
testLoad("sylvie/02.ase");
testLoad("sylvie/404.ase", 55);
testLoad("sylvie/46.ase");
testLoad("sylvie/line.ase", 18);
testLoad("sylvie/mapmenu.ase");
testLoad("libresprite.ase");
testLoad("libresprite.aseprite");
}

} // namespace voxelformat

0 comments on commit 35104a9

Please sign in to comment.