refactor: consolidate engine architecture contracts

This commit is contained in:
西风逍遥游 committed 2026-08-27 12:54:48 +08:00
1 parent 4e8deb1180
commit a8b8e83128
677 files changed
+79854 -9670

No files matched your search

+11
View File
@@ -30,3 +30,14 @@ TEST_CASE("timer.step.deltaPositiveAfterSleep") {
CHECK(delta > 0.f);
CHECK(t->getDelta() == delta);
}
TEST_CASE("timer.simulationClockUsesInjectedFixedSteps") {
auto* t = eve::timer::Timer::create();
const auto before = t->getFrameIndex();
auto steps = t->stepSimulation();
REQUIRE(steps.ok());
CHECK(t->getFrameIndex() > before);
CHECK(t->getDeltaDuration().nanoseconds() >= 0);
CHECK(t->monotonicNow() >= eve::MonotonicTimestamp::zero());
CHECK(t->wallClockNow().unixNanoseconds() != 0);
}