コード例 #1
0
        public virtual void TestConsumeSentenceInstance()
        {
            // we use the default locale, as its randomized by LuceneTestCase
            var bi = BreakIterator.CreateSentenceInstance(Locale.GetUS());
            var ci = CharArrayIterator.NewSentenceInstance();

            for (var i = 0; i < 10000; i++)
            {
                var text = TestUtil.RandomUnicodeString(Random()).toCharArray();
                ci.SetText(text, 0, text.Length);
                Consume(bi, ci);
            }
        }
コード例 #2
0
 public virtual void TestSentenceInstance()
 {
     DoTests(CharArrayIterator.NewSentenceInstance());
 }