Skip to content

Commit

Permalink
Revert "Add test cases"
Browse files Browse the repository at this point in the history
  • Loading branch information
Kailash201 authored Nov 11, 2023
1 parent 4614e24 commit 5f26e40
Show file tree
Hide file tree
Showing 14 changed files with 107 additions and 1,813 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ public boolean equals(Object other) {
// state check
GroupRemarkCommand e = (GroupRemarkCommand) other;
return groupRemark.equals(e.groupRemark)
&& groupName.equals(e.groupName);
&& groupRemark.equals(e.groupName);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,7 @@ public class ListTimeGroupCommand extends ListTimeCommand {
+ "Please provide the group's full name as in the existing contactlist.";
private final Group group;

/**
* Constructor of ListTimeGroupCommand
*
* @param group Group to list time for.
*/
public ListTimeGroupCommand(Group group) {
requireNonNull(group);
this.group = group;
}
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,7 @@ public class ListTimePersonCommand extends ListTimeCommand {
+ "Please provide the person's full name as in the existing contactlist.";
private final Name personName;

/**
* Constructor of ListTimePersonCommand
*
* @param personName Name of person to list time for.
*/
public ListTimePersonCommand(Name personName) {
requireNonNull(personName);
this.personName = personName;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,12 @@ public boolean equals(Object other) {
return true;
}

if (!(other instanceof UngroupPersonCommand)) {
if (!(other instanceof GroupPersonCommand)) {
return false;
}

UngroupPersonCommand otherUngroupPersonCommand = (UngroupPersonCommand) other;
return this.personName.equals(otherUngroupPersonCommand.personName)
&& this.groupName.equals(otherUngroupPersonCommand.groupName);
return this.equals(otherUngroupPersonCommand);

}

Expand Down

This file was deleted.

Loading

0 comments on commit 5f26e40

Please sign in to comment.