Пример #1
0
        public virtual void testToString()
        {
            CharArraySet set = CharArraySet.copy(TEST_VERSION_CURRENT, Collections.singleton("test"));

            assertEquals("[test]", set.ToString());
            set.add("test2");
            assertTrue(set.ToString().Contains(", "));

            set = CharArraySet.copy(Version.LUCENE_30, Collections.singleton("test"));
            assertEquals("[test]", set.ToString());
            set.add("test2");
            assertTrue(set.ToString().Contains(", "));
        }