Check that nextMutableSpan and previousMutableSpan, with and without
maxCount and a limit, return the expected span from every index, move
the index past it, and write through to exactly those elements.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>