public virtual void TestSpanOrMovesForward()
{
Spans spans = OrSpans(new string[] { "w1", "xx" });
spans.Next();
int doc = spans.Doc();
Assert.AreEqual(0, doc);
spans.SkipTo(0);
doc = spans.Doc();
// LUCENE-1583:
// according to Spans, a skipTo to the same doc or less
// should still call next() on the underlying Spans
Assert.AreEqual(1, doc);
}