Skip to content

Add Unit Test For - Trie search string #106 #110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

Add Unit Test For - Trie search string #106 #110

wants to merge 2 commits into from

Conversation

reshmisaji
Copy link

Issue: #106
Hacktoberfest

Copy link
Member

@TheSTL TheSTL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @reshmisaji test cases are weak. Can you work more on it?
For example :

  • Insert abcdefg
  • Insert abcklf
  • Insert dflkg
  • Insert dflkghi
  • Search dflkghi
  • Search dflkghik

Comment on lines +31 to +34
it('Should return false when search is called without a key', () => {
const result = newTrie.search();
expect(result).toEqual(false);
});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate

Comment on lines +35 to +39

it('Should return false when searched for a key which is not yet added', () => {
const result = newTrie.search('abc');
expect(result).toEqual(false);
});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate

@reshmisaji reshmisaji closed this Jul 16, 2020
@reshmisaji reshmisaji deleted the search-test branch July 16, 2020 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants