MCPcopy Create free account
hub / github.com/diasurgical/devilution / TEST

Function TEST

SourceT/cursor_test.cpp:4–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include "all.h"
3
4TEST(Cursor, SetCursor) {
5 int i = dvl::ICURS_SPIKED_CLUB + dvl::CURSOR_FIRSTITEM;
6 dvl::SetCursor_(i);
7 EXPECT_EQ(dvl::pcurs, i);
8 EXPECT_EQ(dvl::cursW, 1 * 28);
9 EXPECT_EQ(dvl::cursH, 3 * 28);
10 EXPECT_EQ(dvl::icursW, 1 * 28);
11 EXPECT_EQ(dvl::icursH, 3 * 28);
12 EXPECT_EQ(dvl::icursW28, 1);
13 EXPECT_EQ(dvl::icursH28, 3);
14}

Callers

nothing calls this directly

Calls 1

SetCursor_Function · 0.85

Tested by

no test coverage detected