Exemplo n.º 1
0
        private void generateMatchList_0()
        {
            string path     = "src/document/DocumentCommandHandler.js";
            var    specials = FuzzyMatch.FindSpecialCharacters(path);
            var    result   = FuzzyMatch.GenerateMatchList("foo", path, specials.specials, specials.lastSegmentSpecialsIndex);

            Assert.Equal(null, result);
        }
Exemplo n.º 2
0
        private void generateMatchList_1()
        {
            string path     = "src/document/DocumentCommandHandler.js";
            var    specials = FuzzyMatch.FindSpecialCharacters(path);

            path = path.ToLower();
            var result = FuzzyMatch.GenerateMatchList("d", path, specials.specials, specials.lastSegmentSpecialsIndex);

            Assert.Equal(13, result[0].index);
        }