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