FileDocCategorySizeDatePackage
CharArrayReaderTest.javaAPI DocAndroid 1.5 API1507Wed May 06 22:42:02 BST 2009android.core

CharArrayReaderTest

public class CharArrayReaderTest extends TestCase
Basic tests for CharArrayReader.

Fields Summary
Constructors Summary
Methods Summary
public voidtestCharArrayReader()

        String str = "AbCdEfGhIjKlMnOpQrStUvWxYz";
        CharArrayReader a = new CharArrayReader(str.toCharArray());
        CharArrayReader b = new CharArrayReader(str.toCharArray());
        CharArrayReader c = new CharArrayReader(str.toCharArray());
        CharArrayReader d = new CharArrayReader(str.toCharArray());

        assertEquals(str, IOUtil.read(a));
        assertEquals("AbCdEfGhIj", IOUtil.read(b, 10));
        assertEquals("bdfhjlnprtvxz", IOUtil.skipRead(c));
        assertEquals("AbCdEfGdEfGhIjKlMnOpQrStUvWxYz", IOUtil.markRead(d, 3, 4));