CheckCellTests.LCSTests.IndicesExcluded C# (CSharp) Method

IndicesExcluded() private method

private IndicesExcluded ( ) : void
return void
        public void IndicesExcluded()
        {
            var s1 = "abc";
            var s2 = "bc";
            // this returns exactly one left-aligned common subsequence, chosen randomly
            var ss = LongestCommonSubsequence.LeftAlignedLCS(s1, s2);

            // get the excluded indices
            var idxs = LongestCommonSubsequence.GetMissingCharIndices(s1, ss);

            Assert.AreEqual(1, idxs.Count());
            Assert.AreEqual(idxs[0], 0);
        }