mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-03 19:05:59 -04:00

Though these are broken and error prone, as they ignore the possibility of conflicts between SDL, SDL2 and wrappers thereof discarding useful include path prefix (SDL2/), since SDL and satellite libraries follow these it's too hard to stay away. So don't use prefixes for SDL include paths any longer.
21 lines
377 B
C++
21 lines
377 B
C++
#include <SDL_main.h>
|
|
|
|
#include <SDL2pp/Surface.hh>
|
|
|
|
#include "testing.h"
|
|
#include "movetest.hh"
|
|
|
|
using namespace SDL2pp;
|
|
|
|
BEGIN_TEST(int, char*[])
|
|
Surface crate(TESTDATA_DIR "/crate.png");
|
|
|
|
MOVE_TEST(Surface, crate, Get, nullptr);
|
|
|
|
{
|
|
EXPECT_EQUAL(crate.GetWidth(), 32);
|
|
EXPECT_EQUAL(crate.GetHeight(), 32);
|
|
EXPECT_EQUAL(crate.GetSize(), Point(32, 32));
|
|
}
|
|
END_TEST()
|