Final fixes, all tests running

This commit is contained in:
Angelos Chalaris
2018-06-18 20:41:57 +03:00
parent 977adb1198
commit e9594e6355
49 changed files with 2189 additions and 1198 deletions

View File

@ -5,7 +5,7 @@ test('stringPermutations is a Function', () => {
expect(stringPermutations).toBeInstanceOf(Function);
});
test('Generates all stringPermutations of a string', () => {
expect(stringPermutations('abc'), ['abc','acb','bac','bca','cab').toEqual('cba']);
expect(stringPermutations('abc')).toEqual(['abc','acb','bac','bca','cab','cba']);
});
test('Works for single-letter strings', () => {
expect(stringPermutations('a')).toEqual(['a']);