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.
30 lines
499 B
30 lines
499 B
#include <gtest/gtest.h> |
|
|
|
#include "diablo.h" |
|
#include "drlg_l1.h" |
|
#include "lighting.h" |
|
|
|
using namespace devilution; |
|
|
|
TEST(Drlg_l1, DRLG_Init_Globals_4flag) |
|
{ |
|
lightflag = false; |
|
light4flag = true; |
|
DRLG_Init_Globals(); |
|
EXPECT_EQ(dLight[0][0], 3); |
|
} |
|
|
|
TEST(Drlg_l1, DRLG_Init_Globals_noflag) |
|
{ |
|
lightflag = false; |
|
light4flag = false; |
|
DRLG_Init_Globals(); |
|
EXPECT_EQ(dLight[0][0], 15); |
|
} |
|
|
|
TEST(Drlg_l1, DRLG_Init_Globals) |
|
{ |
|
lightflag = true; |
|
DRLG_Init_Globals(); |
|
EXPECT_EQ(dLight[0][0], 0); |
|
}
|
|
|