public void DoesntContainsTests(string text, string pattern)
        {
            IStreamBeginningSuffixArray array = new InvertedSuffixArray();

            array.AddStringAtBegin(text);

            Assert.That(!array.Contains(pattern));
        }
Exemplo n.º 2
0
        public static void Main()
        {
            InvertedSuffixArray array = new InvertedSuffixArray();

            string text = "banana";

            using (new Timer())
            {
                array.AddStringAtBegin(text);
            }

            Console.Out.WriteLine("array = {0}", array);
        }