public virtual void TestHugeDoc() { StringBuilder sb = new StringBuilder(); char[] whitespace = new char[4094]; Arrays.Fill(whitespace, ' '); sb.Append(whitespace); sb.Append("testing 1234"); string input = sb.ToString(); StandardTokenizer tokenizer = new StandardTokenizer(TEST_VERSION_CURRENT, new StringReader(input)); BaseTokenStreamTestCase.AssertTokenStreamContents(tokenizer, new string[] { "testing", "1234" }); }
public virtual void TestConsume2() { BaseTokenStreamTestCase.AssertTokenStreamContents(new EmptyTokenStream(), new string[0]); }