Пример #1
0
        public void TestSuffix()
        {
            int c = PrefixesAndSuffixes.CommonSuffixLength("fgh", "abdefgh");

            Assert.AreEqual(c, 3);

            Assert.AreEqual(PrefixesAndSuffixes.CommonSuffixLength("xfgh", "abdefgh"), 3);
        }