forked from nus-cs2103-AY2324S2/tp
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test cases for UserPrefs.hashCode()
Key Changes: * adds a test case to verify that the hashCode() method in UserPrefs returns the same value for equal objects
- Loading branch information
Showing
3 changed files
with
18 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,32 +24,32 @@ public static Person[] getSamplePersons() { | |
new Person(new Id(240001), new Name("Alex Yeoh"), new Phone("87438807"), | ||
new Email("[email protected]"), | ||
new Address("Blk 30 Geylang Street 29, #06-40"), | ||
new YearJoined("2024"), | ||
new YearJoined("2024"), | ||
getTagSet("friends")), | ||
new Person(new Id(240002), new Name("Bernice Yu"), new Phone("99272758"), | ||
new Email("[email protected]"), | ||
new Address("Blk 30 Lorong 3 Serangoon Gardens, #07-18"), | ||
new YearJoined("2024"), | ||
new YearJoined("2024"), | ||
getTagSet("colleagues", "friends")), | ||
new Person(new Id(240003), new Name("Charlotte Oliveiro"), new Phone("93210283"), | ||
new Email("[email protected]"), | ||
new Address("Blk 11 Ang Mo Kio Street 74, #11-04"), | ||
new YearJoined("2024"), | ||
new YearJoined("2024"), | ||
getTagSet("neighbours")), | ||
new Person(new Id(240004), new Name("David Li"), new Phone("91031282"), | ||
new Email("[email protected]"), | ||
new Address("Blk 436 Serangoon Gardens Street 26, #16-43"), | ||
new YearJoined("2024"), | ||
new YearJoined("2024"), | ||
getTagSet("family")), | ||
new Person(new Id(240005), new Name("Irfan Ibrahim"), new Phone("92492021"), | ||
new Email("[email protected]"), | ||
new Address("Blk 47 Tampines Street 20, #17-35"), | ||
new YearJoined("2024"), | ||
new YearJoined("2024"), | ||
getTagSet("classmates")), | ||
new Person(new Id(240006), new Name("Roy Balakrishnan"), new Phone("92624417"), | ||
new Email("[email protected]"), | ||
new Address("Blk 45 Aljunied Street 85, #11-31"), | ||
new YearJoined("2024"), | ||
new YearJoined("2024"), | ||
getTagSet("colleagues")) | ||
}; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters