MCPcopy Create free account
hub / github.com/diasurgical/devilution / TEST

Function TEST

SourceT/doom_test.cpp:4–7  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include "all.h"
3
4TEST(Doom, doom_get_frame_from_time) {
5 dvl::DoomQuestState = 1200 * 8 + 548;
6 EXPECT_EQ(dvl::doom_get_frame_from_time(), 8);
7}
8
9TEST(Doom, doom_get_frame_from_time_max) {
10 dvl::DoomQuestState = 1200 * 30 + 1;

Callers

nothing calls this directly

Calls 1

doom_get_frame_from_timeFunction · 0.85

Tested by

no test coverage detected