public void MaxTurbulenceSizeTest4()
        {
            var test = new P0978_LongestTurbulentSubarray1();

            Assert.AreEqual(2, test.MaxTurbulenceSize(new[] { 4, 8, 12, 16 }));
        }
        public void MaxTurbulenceSizeTest5()
        {
            var test = new P0978_LongestTurbulentSubarray1();

            Assert.AreEqual(1, test.MaxTurbulenceSize(new[] { 100 }));
        }
        public void MaxTurbulenceSizeTest3()
        {
            var test = new P0978_LongestTurbulentSubarray1();

            Assert.AreEqual(5, test.MaxTurbulenceSize(new[] { 9, 4, 2, 10, 7, 8, 8, 1, 9 }));
        }