Skip to content

LinkedList + tests#1

Open
vhalubkova wants to merge 1 commit intomainfrom
forCheck
Open

LinkedList + tests#1
vhalubkova wants to merge 1 commit intomainfrom
forCheck

Conversation

@vhalubkova
Copy link
Copy Markdown
Owner

No description provided.

Copy link
Copy Markdown
Collaborator

@ryhorkisly-afk ryhorkisly-afk left a comment

Choose a reason for hiding this comment

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

you should make changes not only in the comment areas, but review the entire code

<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.8.1</version>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

write versions in properties

}
}

// size() - returns the size of the list
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

do not use comments. turn it into javaDock

}

// add(index, el) - adds the element in the list by index
public void add(int index, T value) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

it's better return somthing.

import static org.junit.jupiter.api.Assertions.assertThrows;

public class MyLinkedListTest {
// size() tests
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

remove comments. Better add @DisplayName annotation for every method

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