mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-04 03:15:59 -04:00
Add Surface move test
This commit is contained in:
parent
cebaa53dcb
commit
b26842cf98
@ -3,12 +3,15 @@
|
|||||||
#include <SDL2pp/Surface.hh>
|
#include <SDL2pp/Surface.hh>
|
||||||
|
|
||||||
#include "testing.h"
|
#include "testing.h"
|
||||||
|
#include "movetest.hh"
|
||||||
|
|
||||||
using namespace SDL2pp;
|
using namespace SDL2pp;
|
||||||
|
|
||||||
BEGIN_TEST(int, char*[])
|
BEGIN_TEST(int, char*[])
|
||||||
Surface crate(TESTDATA_DIR "/crate.png");
|
Surface crate(TESTDATA_DIR "/crate.png");
|
||||||
|
|
||||||
|
MOVE_TEST(Surface, crate, Get, nullptr);
|
||||||
|
|
||||||
{
|
{
|
||||||
EXPECT_EQUAL(crate.GetWidth(), 32);
|
EXPECT_EQUAL(crate.GetWidth(), 32);
|
||||||
EXPECT_EQUAL(crate.GetHeight(), 32);
|
EXPECT_EQUAL(crate.GetHeight(), 32);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user