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.
 
 
 
 
 
 

14 lines
373 B

#include <gtest/gtest.h>
#include "devilution.h"
TEST(Cursor, SetCursor) {
int i = dvl::ICURS_SPIKED_CLUB + dvl::CURSOR_FIRSTITEM;
dvl::SetCursor_(i);
EXPECT_EQ(dvl::pcurs, i);
EXPECT_EQ(dvl::cursW, 1 * 28);
EXPECT_EQ(dvl::cursH, 3 * 28);
EXPECT_EQ(dvl::icursW, 1 * 28);
EXPECT_EQ(dvl::icursH, 3 * 28);
EXPECT_EQ(dvl::icursW28, 1);
EXPECT_EQ(dvl::icursH28, 3);
}