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.
19 lines
347 B
19 lines
347 B
#include <gtest/gtest.h> |
|
|
|
#include "dead.h" |
|
#include "engine.h" |
|
#include "gendung.h" |
|
|
|
using namespace devilution; |
|
|
|
TEST(Dead, AddDead) |
|
{ |
|
AddDead({21, 48}, 8, DIR_W); |
|
EXPECT_EQ(dDead[21][48], 8 + (DIR_W << 5)); |
|
} |
|
|
|
TEST(Dead, AddDead_OOB) |
|
{ |
|
AddDead({21, 48}, MaxDead + 1, DIR_W); |
|
EXPECT_EQ(dDead[21][48], 0 + (DIR_W << 5)); |
|
}
|
|
|