remove test files

This commit is contained in:
Rohit Tanwar
2018-02-26 15:08:42 +05:30
parent a47f64c89a
commit d365217974
4 changed files with 0 additions and 38 deletions

View File

@ -1,5 +0,0 @@
const fuzzySearch = (pattern, str) =>
[...str].reduce(
(matchIndex, char) => char.toLowerCase() === (pattern[matchIndex] || '').toLowerCase() ? matchIndex + 1 : matchIndex, 0
) === pattern.length ? true : false;
module.exports = fuzzySearch;

View File

@ -1,15 +0,0 @@
const test = require('tape');
const fuzzySearch = require('./fuzzySearch.js');
test('Testing fuzzySearch', (t) => {
//For more information on all the methods supported by tape
//Please go to https://github.com/substack/tape
t.true(typeof fuzzySearch === 'function', 'fuzzySearch is a Function');
t.true(fuzzySearch('rt','Rohit'),'Provided examples work');
t.false(fuzzySearch('tr','Rohit'),'Provided examples work');
//t.deepEqual(fuzzySearch(args..), 'Expected');
//t.equal(fuzzySearch(args..), 'Expected');
//t.false(fuzzySearch(args..), 'Expected');
//t.throws(fuzzySearch(args..), 'Expected');
t.end();
});

View File

@ -1,5 +0,0 @@
const isSimilar = (pattern, str) =>
[...str].reduce(
(matchIndex, char) => char.toLowerCase() === (pattern[matchIndex] || '').toLowerCase() ? matchIndex + 1 : matchIndex, 0
) === pattern.length ? true : false;
module.exports = isSimilar;

View File

@ -1,13 +0,0 @@
const test = require('tape');
const isSimilar = require('./isSimilar.js');
test('Testing isSimilar', (t) => {
//For more information on all the methods supported by tape
//Please go to https://github.com/substack/tape
t.true(typeof isSimilar === 'function', 'isSimilar is a Function');
//t.deepEqual(isSimilar(args..), 'Expected');
//t.equal(isSimilar(args..), 'Expected');
//t.false(isSimilar(args..), 'Expected');
//t.throws(isSimilar(args..), 'Expected');
t.end();
});