You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
#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(cursSize.width, 1 * 28);
|
|
|
|
|
EXPECT_EQ(cursSize.height, 3 * 28);
|
|
|
|
|
EXPECT_EQ(icursSize.width, 1 * 28);
|
|
|
|
|
EXPECT_EQ(icursSize.height, 3 * 28);
|
|
|
|
|
EXPECT_EQ(icursSize28.width, 1);
|
|
|
|
|
EXPECT_EQ(icursSize28.height, 3);
|
|
|
|
|
}
|