<commit_before>import test from 'ava';
import m from '.';

test('main', t => {
	t.true(m('http://sindresorhus.com', 'http://sindresorhus.com/'));
	t.true(m('http://sindresorhus.com', '//sindresorhus.com'));
	t.true(m('http://sindresorhus.com', 'sindresorhus.com'));
	t.true(m('HTTP://sindresorhus.com/?b=b&a=a', 'sindresorhus.com/?a=a&b=b'));
});
<commit_msg>Use HTTPS links<commit_after>import test from 'ava';
import compareUrls from '.';

test('main', t => {
	t.true(compareUrls('https://sindresorhus.com', 'https://sindresorhus.com/'));
	t.true(compareUrls('http://sindresorhus.com', '//sindresorhus.com'));
	t.true(compareUrls('https://sindresorhus.com', 'sindresorhus.com'));
	t.true(compareUrls('HTTPS://sindresorhus.com/?b=b&a=a', 'sindresorhus.com/?a=a&b=b'));
});

{'fraction_non_alphanumeric': 0.25839793281653745, 'fraction_numerical': 0.0, 'mean_word_length': 5.981981981981982, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '26748', 'n_tokens_mistral': 339, 'n_tokens_neox': 336, 'n_words': 36}