| Unit test for PieceReader. Takes a quatrain of a sonnet and stores the
lines out-of-order, then constructs a PieceTable that will re-order the
lines correctly. Finally constructs a PieceReader with that raw data
and piece table and sees if the correct quatrain is produced by the
stream. Also performs some tests of random seeking within the stream.
author: pjack |