mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-05 08:16:50 +08:00
Added tests for Strings algorithms (#390)
* test: added tests for check anagram function
This commit is contained in:
@ -44,7 +44,4 @@ const checkAnagram = (str1, str2) => {
|
||||
return 'Anagrams'
|
||||
}
|
||||
|
||||
console.log(checkAnagram('abcd', 'bcad')) // should print anagram
|
||||
console.log(checkAnagram('abcd', 'abef')) // should print not anagram
|
||||
console.log(checkAnagram(10, 'abcd'))// should print Not String(s).
|
||||
console.log(checkAnagram('abs', 'abds'))// should print not anagram
|
||||
export { checkAnagram }
|
||||
|
Reference in New Issue
Block a user