From aeeca45ae53c2382354f26fb4dae02fbda62b314 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Thu, 5 Apr 2018 15:05:36 +0100 Subject: Adding test abstraction and fixing tests --- tests/spritesheet/test.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'tests/spritesheet/test.cpp') diff --git a/tests/spritesheet/test.cpp b/tests/spritesheet/test.cpp index 4d4cc1a4..7fe4e77f 100644 --- a/tests/spritesheet/test.cpp +++ b/tests/spritesheet/test.cpp @@ -6,21 +6,17 @@ * ---------------------------------------------------------------------------- */ -/** @file */ - #include #include +#include "../testshared.h" + using namespace yage; TEST(SpriteSheet, Load) { - /// @todo add a test to test the spritesheet loading + SpriteSheet sp("tests/spritesheet/floor_atlas.png", "tests/spritesheet/floor_atlas.json"); ASSERT_TRUE(true); } -int main(int argc, char **argv) -{ - testing::InitGoogleTest(&argc, argv); - return RUN_ALL_TESTS(); -} +OPENGL_TEST_MAIN(LogLevel::DEBUG) -- cgit