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 enhancements to UG and DG #199

Merged
merged 7 commits into from
Oct 27, 2020

Conversation

JunCheng98
Copy link

No description provided.

@codecov
Copy link

codecov bot commented Oct 26, 2020

Codecov Report

Merging #199 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #199   +/-   ##
=========================================
  Coverage     74.27%   74.27%           
  Complexity      528      528           
=========================================
  Files            83       83           
  Lines          1555     1555           
  Branches        154      154           
=========================================
  Hits           1155     1155           
  Misses          340      340           
  Partials         60       60           
Impacted Files Coverage Δ Complexity Δ
src/main/java/seedu/zookeep/model/animal/Id.java 80.00% <ø> (ø) 6.00 <0.00> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4fb63d1...fbf42ca. Read the comment docs.

@@ -91,7 +91,7 @@ The `UI` component,

1. `Logic` uses the `AddressBookParser` class to parse the user command.
1. This results in a `Command` object which is executed by the `LogicManager`.
1. The command execution can affect the `Model` (e.g. adding a person).
1. The command execution can affect the `Model` (e.g. adding a animal).

Choose a reason for hiding this comment

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

"an animal"

Copy link
Author

Choose a reason for hiding this comment

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

Fixed


1. Other incorrect delete commands to try: `delete`, `delete x`, `...` (where x is larger than the list size)<br>
1. Other incorrect delete commands to try: `delete`, `delete x`, `...` (where x is smaller than the requisite size)<br>
Copy link

Choose a reason for hiding this comment

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

Think this one is for the delete index?

Copy link
Author

Choose a reason for hiding this comment

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

Updated it to 'where x is smaller than all 3 digit numbers' since these are examples of incorrect delete commands

Comment on lines 742 to 754
1. Deleting an animal while not all animals are being shown

1. Prerequisites: Use `find 455` command to list animals that contain 455 in any of their fields.
2 animals are listed: an anaconda named 455 and a lion named Simba with an ID of 455.

1. Test case: `delete 455`<br>
Expected: Simba with an ID of 455 is deleted from the list. Details of the deleted animal shown in the status message. Timestamp in the status bar is updated.

1. Test case: `delete 123`<br>
Expected: No animal is deleted. Error details shown in the status message. Status bar remains the same.

1. Other incorrect delete commands to try: `delete`, `delete x`, `...` (where x is smaller than the requisite size)<br>
Expected: Similar to previous.
Copy link

Choose a reason for hiding this comment

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

May have to modify this since delete should work without finding anymore.

Copy link
Author

Choose a reason for hiding this comment

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

Deleted

@m0nggh m0nggh merged commit 06ed348 into AY2021S1-CS2103T-W15-4:master Oct 27, 2020
@JunCheng98 JunCheng98 added this to the v1.3 milestone Nov 3, 2020
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

3 participants