aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/common/test-EventMap.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/common/test-EventMap.cpp b/tests/common/test-EventMap.cpp
index 563fd9b4873..89d3c4d2bb2 100644
--- a/tests/common/test-EventMap.cpp
+++ b/tests/common/test-EventMap.cpp
@@ -66,6 +66,13 @@ TEST_CASE("Schedule an event", "[EventMap]")
REQUIRE(eventMap.Empty());
REQUIRE(eventMap.GetTimeUntilEvent(EVENT_1) == Milliseconds::max());
}
+
+ SECTION("Event is past it's execution time")
+ {
+ eventMap.Update(2000);
+
+ REQUIRE(eventMap.GetTimeUntilEvent(EVENT_1) == -1s);
+ }
}
// TODO: The semantics of this case are not well defined.