mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-03 10:55:57 -04:00
21 lines
382 B
C++
21 lines
382 B
C++
#include <SDL2/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()
|