break;
default:
reader = new CharArrayReader(chars);
reader2 = new CharArrayReader(chars);
}
PushbackReader pReader = new PushbackReader(reader, 2);
PushbackReader pReader2 = new PushbackReader(reader2, 2);
boolean skipped = false;
long numSkipped = 0;
try {
numSkipped = pReader2.skip(3);
pReader2.unread('a');
pReader2.unread('b');
numSkipped += pReader2.skip(10);
numSkipped += pReader2.skip(10);
numSkipped += pReader2.skip(10);
numSkipped += pReader2.skip(10);
numSkipped += pReader2.skip(10);
numSkipped += pReader2.skip(10);
assertEquals("Did not skip correct number of characters",
7, numSkipped);
numSkipped = 0;
numSkipped += pReader.skip(2);
pReader.unread('i');