Test EventDetection with tolerance > integrator step size
if the tests fail to detect events decide if the fix is improved documentation or code changes. The lines in EventState.evaluateStep(...)
that make me suspicious are:
if (FastMath.abs(dt) < detector.getThreshold()) {
// we cannot do anything on such a small step, don't trigger any events
return false;
}
It seems then that events could be missed even if the g function was positive/negative for longer than maxCheck
across several integrator steps.