Пример #1
0
        public virtual void TestConsumeWordInstance()
        {
            // we use the default locale, as its randomized by LuceneTestCase
            var bi = BreakIterator.CreateWordInstance(Locale.GetUS());
            var ci = CharArrayIterator.NewWordInstance();

            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 TestWordInstance()
 {
     DoTests(CharArrayIterator.NewWordInstance());
 }