<commit_before>﻿using NUnit.Framework;
using Wox.Plugin.Url;

namespace Wox.Test
{
    [TestFixture]
    public class UrlPluginTest
    {
        [Test]
        public void URLMatchTest()
        {
            UrlPlugin urlPlugin = new UrlPlugin();
            Assert.IsTrue(urlPlugin.IsURL("http://www.google.com"));
            Assert.IsTrue(urlPlugin.IsURL("https://www.google.com"));
            Assert.IsTrue(urlPlugin.IsURL("http://google.com"));
            Assert.IsTrue(urlPlugin.IsURL("www.google.com"));
            Assert.IsTrue(urlPlugin.IsURL("google.com"));
            Assert.IsTrue(urlPlugin.IsURL("http://localhost"));
            Assert.IsTrue(urlPlugin.IsURL("https://localhost"));
            Assert.IsTrue(urlPlugin.IsURL("http://localhost:80"));
            Assert.IsTrue(urlPlugin.IsURL("https://localhost:80"));
            Assert.IsTrue(urlPlugin.IsURL("http://110.10.10.10"));
            Assert.IsTrue(urlPlugin.IsURL("110.10.10.10"));
            Assert.IsTrue(urlPlugin.IsURL("ftp://110.10.10.10"));


            Assert.IsFalse(urlPlugin.IsURL("wwww"));
            Assert.IsFalse(urlPlugin.IsURL("wwww.c"));
            Assert.IsFalse(urlPlugin.IsURL("wwww.c"));
        }
    }
}<commit_msg>fix tests<commit_after>﻿using NUnit.Framework;
using Wox.Plugin.Url;

namespace Wox.Test
{
    [TestFixture]
    public class UrlPluginTest
    {
        [Test]
        public void URLMatchTest()
        {
            var plugin = new Main();
            Assert.IsTrue(plugin.IsURL("http://www.google.com"));
            Assert.IsTrue(plugin.IsURL("https://www.google.com"));
            Assert.IsTrue(plugin.IsURL("http://google.com"));
            Assert.IsTrue(plugin.IsURL("www.google.com"));
            Assert.IsTrue(plugin.IsURL("google.com"));
            Assert.IsTrue(plugin.IsURL("http://localhost"));
            Assert.IsTrue(plugin.IsURL("https://localhost"));
            Assert.IsTrue(plugin.IsURL("http://localhost:80"));
            Assert.IsTrue(plugin.IsURL("https://localhost:80"));
            Assert.IsTrue(plugin.IsURL("http://110.10.10.10"));
            Assert.IsTrue(plugin.IsURL("110.10.10.10"));
            Assert.IsTrue(plugin.IsURL("ftp://110.10.10.10"));


            Assert.IsFalse(plugin.IsURL("wwww"));
            Assert.IsFalse(plugin.IsURL("wwww.c"));
            Assert.IsFalse(plugin.IsURL("wwww.c"));
        }
    }
}
{'fraction_non_alphanumeric': 0.17526205450733753, 'fraction_numerical': 0.0259958071278826, 'mean_word_length': 2.3700564971751414, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 12, 'xml': 0}, 'pii_count': 6, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '890142', 'n_tokens_mistral': 774, 'n_tokens_neox': 731, 'n_words': 67}