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

Add tests for Chart and ChartList to improve coverage, add body for ChartException #115

Merged
merged 4 commits into from
Apr 4, 2019

Conversation

nivenang
Copy link

@nivenang nivenang commented Apr 3, 2019

No description provided.

@nivenang nivenang changed the title Add tests for Chart and ChartList, add body for ChartException Add tests for Chart and ChartList to improve coverage, add body for ChartException Apr 3, 2019
@chung-ming chung-ming added this to the v1.4 milestone Apr 3, 2019
Copy link
Member

@chung-ming chung-ming left a comment

Choose a reason for hiding this comment

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

Great job. Will merge your PR to the team repo.

@chung-ming chung-ming self-requested a review April 3, 2019 18:43
assertFalse(firstCountryChartValueFour.equals(1));

// null -> returns false
assertFalse(firstCountryChartValueFour.equals(null));
Copy link
Member

Choose a reason for hiding this comment

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

From PMD 1.9 onwards, tests for null should not use the equals() method. The '==' operator should be used instead. Suggest to change it to:
assertFalse(firstCountryChartValueFour == null);

@PremBagda
Copy link

Good job in coming out with the test cases and increasing the coverage percentage. The chart seems to be thoroughly tested now.

@PremBagda PremBagda merged commit e785409 into CS2103-AY1819S2-W11-3:master Apr 4, 2019
@nivenang nivenang added the type.Testing A test unit label Apr 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type.Testing A test unit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants