Esempio n. 1
0
        public void LargeGroupPositions_2()
        {
            var solution = new _0830_PositionsOfLargeGroups();
            var result   = solution.LargeGroupPositions("abc");

            Assert.AreEqual(0, result.Count);
        }
Esempio n. 2
0
        public void LargeGroupPositions_1()
        {
            var solution = new _0830_PositionsOfLargeGroups();
            var result   = solution.LargeGroupPositions("abbxxxxzzy");

            AssertHelper.AssertList(new List <IList <int> > {
                new int[] { 3, 6 },
            }, result);
        }
Esempio n. 3
0
        public void LargeGroupPositions_3()
        {
            var solution = new _0830_PositionsOfLargeGroups();
            var result   = solution.LargeGroupPositions("abcdddeeeeaabbbcd");

            AssertHelper.AssertList(new List <IList <int> > {
                new int[] { 3, 5 },
                new int[] { 6, 9 },
                new int[] { 12, 14 },
            }, result);
        }