add anagram test

This commit is contained in:
Stefan Feješ
2018-01-10 18:04:37 +01:00
parent a234ca519e
commit c3946950c0

View File

@ -5,6 +5,8 @@ test('Testing anagrams', (t) => {
//For more information on all the methods supported by tape
//Please go to https://github.com/substack/tape
t.true(typeof anagrams === 'function', 'anagrams is a Function');
//BROKEN
// t.deepEqual(anagrams('abc'), ['abc','acb','bac','bca','cab','cba'], "Generates all anagrams of a string");
//t.deepEqual(anagrams(args..), 'Expected');
//t.equal(anagrams(args..), 'Expected');
//t.false(anagrams(args..), 'Expected');