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.
17 lines
345 B
17 lines
345 B
#include <gtest/gtest.h> |
|
#include "all.h" |
|
|
|
using namespace devilution; |
|
|
|
TEST(Cursor, SetCursor) |
|
{ |
|
int i = ICURS_SPIKED_CLUB + CURSOR_FIRSTITEM; |
|
SetCursor_(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); |
|
}
|
|
|