예제 #1
0
        public void TestNumSmallerByFrequency(string[] queries, string[] words, int[] expectedResult)
        {
            var stringProblems = new StringProblems();

            var actualResult = stringProblems.NumSmallerByFrequency(queries, words);

            Assert.Equal <int>(expectedResult.Length, actualResult.Length);

            for (var i = 0; i < expectedResult.Length; i++)
            {
                Assert.Equal <int>(expectedResult[i], actualResult[i]);
            }
        }