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