Пример #1
0
        public void BeatifulTriplets_Case3()
        {
            var arr = new List <int> {
                1, 2, 3, 4, 5, 7, 7, 7, 8, 9, 11
            };
            var d = 4;

            var actual = new BeatifulTriplets().beautifulTriplets(d, arr);

            var expected = 2;

            Assert.AreEqual(expected, actual);
        }
Пример #2
0
        public void BeatifulTriplets_Case2()
        {
            var arr = new List <int> {
                1, 2, 3, 4, 5
            };
            var d = 1;

            var actual = new BeatifulTriplets().beautifulTriplets(d, arr);

            var expected = 3;

            Assert.AreEqual(expected, actual);
        }