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