Skip to content

Commit

Permalink
Fix editcommand
Browse files Browse the repository at this point in the history
  • Loading branch information
Darren159 committed Oct 15, 2023
1 parent f91649c commit 43446c6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public static class EditPersonDescriptor {
private Gender gender;
private Age age;
private BloodType bloodType;
private Set<Allergy> allergies = new HashSet<>();
private Set<Allergy> allergies;

public EditPersonDescriptor() {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class ParserUtilTest {
private static final String VALID_GENDER = "M";
private static final int VALID_AGE = 10;
private static final String VALID_AGE_STRING = "10";
private static final String VALID_BLOODTYPE = "A";
private static final String VALID_BLOODTYPE = "A+";
private static final String VALID_ALLERGY_1 = "Nuts";
private static final String VALID_ALLERGY_2 = "Coconut";

Expand Down
2 changes: 1 addition & 1 deletion src/test/java/seedu/address/testutil/PersonBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class PersonBuilder {
public static final String DEFAULT_PHONE = "85355255";
public static final String DEFAULT_GENDER = "F";
public static final int DEFAULT_AGE = 21;
public static final String DEFAULT_BLOODTYPE = "O";
public static final String DEFAULT_BLOODTYPE = "O+";
public static final String DEFAULT_ALLERGY = "Ants";

private Name name;
Expand Down
1 change: 0 additions & 1 deletion src/test/java/seedu/address/testutil/PersonUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import seedu.address.logic.commands.EditCommand.EditPersonDescriptor;
import seedu.address.model.person.Allergy;
import seedu.address.model.person.Person;
import seedu.address.model.tag.Tag;

import static seedu.address.logic.parser.CliSyntax.*;

Expand Down
6 changes: 3 additions & 3 deletions src/test/java/seedu/address/testutil/TypicalPersons.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,21 +60,21 @@ public class TypicalPersons {
.withPhone("9482442")
.withGender("M")
.withAge(30)
.withBloodType("O").build();
.withBloodType("O+").build();

// Manually added
public static final Person HOON = new PersonBuilder().withName("Hoon Meier")
.withEmail("[email protected]")
.withPhone("8482424")
.withGender("M")
.withAge(30)
.withBloodType("A").build();
.withBloodType("A+").build();
public static final Person IDA = new PersonBuilder().withName("Ida Mueller")
.withEmail("[email protected]")
.withPhone("8482131")
.withGender("M")
.withAge(33)
.withBloodType("B").build();
.withBloodType("B+").build();

// Manually added - Person's details found in {@code CommandTestUtil}
public static final Person AMY = new PersonBuilder().withName(VALID_NAME_AMY)
Expand Down

0 comments on commit 43446c6

Please sign in to comment.