When a shrunk RandomRun is tried, and succeeds in generating a test-failing value, remove the unused suffix of the RandomRun value (it would have to be cleaned up with further ShrinkCmds later otherwise). Return only the used part of the RandomRun as the new best shrink.
This idea is courtesy of @CoderDennis - thanks!
When a shrunk RandomRun is tried, and succeeds in generating a test-failing value, remove the unused suffix of the RandomRun value (it would have to be cleaned up with further ShrinkCmds later otherwise). Return only the used part of the RandomRun as the new best shrink.