Skip to content
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

Correcting test case file name. #35

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Kanika-19
Copy link

@Kanika-19 Kanika-19 commented Sep 22, 2019

Changing the test case file name.
It is a good practice to name the test case file as fileName + Test.java.
It will help to developers to search for a test case file of a certain file more easily.

public void testContains() {
list.add(1);
assertTrue(list.contains(1));
assertFalse(list.contains(2));
Copy link
Owner

Choose a reason for hiding this comment

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

I don't think you need to assert the linked list does not contain a certain value because there are an infinite number of numbers it does not contain. Perhaps check the size instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants