public class getOffsetHit implements Testlet
{
public void test(TestHarness harness)
{
TextHitInfo info = TextHitInfo.leading(0);
harness.check(info.getOffsetHit(0).toString(), "TextHitInfo[0L]");
harness.check(info.isLeadingEdge(), true);
info = TextHitInfo.leading(0);
harness.check(info.getOffsetHit(-2).toString(), "TextHitInfo[-2L]");
harness.check(info.isLeadingEdge(), true);
info = TextHitInfo.leading(0);
harness.check(info.getOffsetHit(2).toString(), "TextHitInfo[2L]");
harness.check(info.isLeadingEdge(), true);
info = TextHitInfo.trailing(0);
harness.check(info.getOffsetHit(0).toString(), "TextHitInfo[0T]");
harness.check(info.isLeadingEdge(), false);
info = TextHitInfo.trailing(0);
harness.check(info.getOffsetHit(-2).toString(), "TextHitInfo[-2T]");
harness.check(info.isLeadingEdge(), false);
info = TextHitInfo.trailing(0);
harness.check(info.getOffsetHit(2).toString(), "TextHitInfo[2T]");
harness.check(info.isLeadingEdge(), false);
}