<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> Was/is the 2 correct then? (if it was next(rbegin, 2) that'd be equivalent<br>
> to prev(end, 3), yes?)<br>
<br>
I think it is from looking at the test case, looping in martin to see<br>
whether I'm right :)</blockquote><div><br></div><div>At that point in the code, we have [..., PrePrev = '@', Prev = 'SomeToken'] and CurrentToken = 'Whatever', CurrentToken has not been appended to the list yet. So moving two from the end should be correct.</div><div><br></div><div>I don't quite understand why rend() actually works in my code with the unit tests. Is that some unintentional side effect of its implementation leaking? I think I explicitly confirmed that my test does test what it's trying to test.</div><div><br></div><div>Martin</div></div></div>