From 50ae98cb55b0552f751bdbf159a318135de4d215 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 3 Mar 2024 18:33:25 +0100 Subject: test/critter: add todo --- test/critter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/test/critter.cpp b/test/critter.cpp index 630208a3..2aca3da3 100644 --- a/test/critter.cpp +++ b/test/critter.cpp @@ -131,6 +131,7 @@ bool run(StringView subtest_name, critter& npc, const function_view& print_pos("-", expected.pt, pos, time, dt); Debug{} << "===>" << i << "iters" << colon(',') << time << Debug::newline; } + if (i == 0) [[unlikely]] // todo! check for very small dt before dying { auto dbg = Error{standard_error(), Debug::Flag::NoSpace}; dbg << "!!! fatal: took zero iterations!"; dbg << " dt=" << dt << "accel=" << npc.speed; -- cgit v1.2.3