Ejemplo n.º 1
0
        public static void TestRemoveCharsName()
        {
            var name = "Azure lane";

            name = RegexUtills.RemoveChars(name);
            Assert.AreEqual("azure lane", name);
        }
Ejemplo n.º 2
0
        public static void TestLevenshteinDistancePercent()
        {
            var percent = RegexUtills.GetLevenshteinDistancePercent("Steins;Gate", "Steins;Gate - 01 [1080p].mkv");

            Assert.AreEqual(39, percent);

            var percent3 = RegexUtills.GetLevenshteinDistancePercent(
                RegexUtills.RemoveChars("Steins;Gate"),
                RegexUtills.FixRssTitle("Steins;Gate - 01 [1080p].mkv"));

            Assert.AreEqual(100, percent3);
        }