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.
12 lines
311 B
12 lines
311 B
#include <gtest/gtest.h> |
|
#include "devilution.h" |
|
|
|
TEST(Doom, doom_get_frame_from_time) { |
|
dvl::DoomQuestState = 1200 * 8 + 548; |
|
EXPECT_EQ(dvl::doom_get_frame_from_time(), 8); |
|
} |
|
|
|
TEST(Doom, doom_get_frame_from_time_max) { |
|
dvl::DoomQuestState = 1200 * 30 + 1; |
|
EXPECT_EQ(dvl::doom_get_frame_from_time(), 31); |
|
}
|
|
|