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 view student tests #119

Merged

Conversation

althea28
Copy link

No description provided.

@althea28 althea28 added the priority.High Must do label Oct 22, 2024
@althea28 althea28 added this to the v1.4 milestone Oct 22, 2024
@althea28 althea28 self-assigned this Oct 22, 2024
@althea28 althea28 linked an issue Oct 22, 2024 that may be closed by this pull request
Copy link

codecov bot commented Oct 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ Complexity Δ
...edu/address/logic/commands/ViewStudentCommand.java 100.00% <100.00%> (+100.00%) 7.00 <1.00> (+7.00)

... and 7 files with indirect coverage changes

@althea28 althea28 merged commit 7368ff4 into AY2425S1-CS2103-F11-1:master Oct 22, 2024
4 checks passed
Comment on lines +77 to +91
// same object -> returns true
assertTrue(viewFirstCommand.equals(viewFirstCommand));

// same values -> returns true
ViewStudentCommand viewFirstCommandCopy = new ViewStudentCommand(INDEX_FIRST_STUDENT);
assertTrue(viewFirstCommand.equals(viewFirstCommandCopy));

// different types -> returns false
assertFalse(viewFirstCommand.equals(1));

// null -> returns false
assertFalse(viewFirstCommand.equals(null));

// different student -> returns false
assertFalse(viewFirstCommand.equals(viewSecondCommand));

Choose a reason for hiding this comment

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

I like the comments as it makes it clearer on what cases you are testing

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

Successfully merging this pull request may close these issues.

Add test cases for ViewStudent command
2 participants