summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-03-03 18:33:25 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-03-04 06:58:19 +0100
commit50ae98cb55b0552f751bdbf159a318135de4d215 (patch)
tree2fdb40921879aa1a38f29b74d373a3a69118510e
parent67da30d2f41078dbf90d667b90bceb84ccbee7be (diff)
test/critter: add todo
-rw-r--r--test/critter.cpp1
1 files changed, 1 insertions, 0 deletions
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<Ns() const>&
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;