Skip to content

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.

2 participants