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

Function TEST

SourceT/dead_test.cpp:4–7  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include "all.h"
3
4TEST(Dead, AddDead) {
5 dvl::AddDead(21, 48, 8, dvl::DIR_W);
6 EXPECT_EQ(dvl::dDead[21][48], 8 + (dvl::DIR_W << 5));
7}
8
9TEST(Dead, AddDead_OOB) {
10 dvl::AddDead(21, 48, MAXDEAD + 1, dvl::DIR_W);

Callers

nothing calls this directly

Calls 1

AddDeadFunction · 0.85

Tested by

no test coverage detected