mirror of
https://github.com/libretro/devilutionX.git
synced 2026-11-10 17:20:56 -10:00
20 lines
388 B
C++
20 lines
388 B
C++
#include <gtest/gtest.h>
|
|
|
|
#include "cursor.h"
|
|
#include "itemdat.h"
|
|
|
|
using namespace devilution;
|
|
|
|
TEST(Cursor, SetCursor)
|
|
{
|
|
int i = ICURS_SPIKED_CLUB + CURSOR_FIRSTITEM;
|
|
NewCursor(i);
|
|
EXPECT_EQ(pcurs, i);
|
|
EXPECT_EQ(cursW, 1 * 28);
|
|
EXPECT_EQ(cursH, 3 * 28);
|
|
EXPECT_EQ(icursW, 1 * 28);
|
|
EXPECT_EQ(icursH, 3 * 28);
|
|
EXPECT_EQ(icursW28, 1);
|
|
EXPECT_EQ(icursH28, 3);
|
|
}
|